Guard hotkeys against invalid values