EventsAPI.KEY_PRESS

The KEY_PRESS event runs every time a keyboard key is pressed
Takes three number parameters,
a "key", which is the number id of the key that was been pressed, the "action", which is the status of the press event (0 for release, 1 for press, 2 for hold), and the "modifier", which is a bitmask number detecting if you have any modifier keys being pressed (like shift or alt, for example)
If returned true, the event cancels its vanilla function
field signature:
KEY_PRESS
Method Property Fluent Description Representation
Field Type an Event
a a