refactoring keybindings