@kugel- The plugin not only needs to receive the keypress events but also consume the event so Geany won't perform the assigned keybinding. And this isn't possible with just connecting "key-press-event" because Geany connects it too and its handler is performed first.