include NSFlagsChanged when checking for key events