Check for non-matching modifier keys when matching shortcuts