Refactored the hotkeys system.