keybinding widget: a little more refactoring