Callers can use this function on a key-pressed/released signal to find out the key event group, useful in a few places.
This event controller is meant to replace usage from key-press/release-event handlers all through. Optionally it can be set a GtkIMContext, so interaction is carried by the controller.