Abstract hotkey code