NSEvent.EventType.keyDown The user pressed a key on the keyboard. Declarationcase keyDown See AlsoGetting Keyboard Event TypesNSEvent.EventType.keyUp