Protect keyboard shortcuts from activating during prompts