refactored keybindings to be more modular