Forwards the message to the global
- macOS 10.0+
The mask that the event to return must match.
The date until which to wait for events.
The run loop mode to use while waiting for events
trueto remove the returned event from the event queue;
falseto leave the returned event in the queue.
The next event whose mask matches the specified
nil when no matching event was found.