Determines if the given native event represents the pressing of the given key.
The event to check.
The key to check for.
Determines if the given native event represents the pressing of the given key.