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
YESto remove the returned event from the event queue;
NOto leave the returned event in the queue.
The next event whose mask matches the specified
nil when no matching event was found.