In OS X, why is keyDown or keyUp not called while you are dragging with the mouse? Are the mouse and keyboard events combined somehow?
OS X - keyboard events not called when mouse is dragging?
Actually this happens during a NSPanGestureRecognizer. And I guess those intercept key events, even when the gesture is not triggered by keys. So I had to subclass the NSPanGestureRecognizer and manually pass the key events to the window controller.