NSView's keyDown: and keyUp: don't fire when just a modifier key goes down. If you do want to react to this, you'll need to overrideflagsChanged: (NSEvent *) event
and look at the event there. (flagsChanged: comes from NSResponder, so any responder in the responder chain can react to it)