Resolve issue with judging keyboard shortcuts being used globally.