Ignore irrelevant modifier state when matching hotkeys.