Generalize handling of key bindings in gtk, for other possible widgets