Fix hotkey detection