Moved all keybinding code to a centralized location