keyDown(with:)
Informs the receiver that the user has pressed a key.
Declaration
func keyDown(with event: NSEvent)Parameters
- event:
An object encapsulating information about the key-down event.
Discussion
The receiver can interpret event itself, or pass it to the system input manager using interpretKeyEvents(_:). The default implementation simply passes this message to the next responder.