Skip to content

KeyEvent Enum

The KeyEvent enum defines the types of key and scroll events that can be captured and processed.

Enum Values

NameValueDescription
SCROLL_DOWN0Triggered when the mouse wheel scrolls downward.
SCROLL_UP1Triggered when the mouse wheel scrolls upward.
KEY_DOWN2Triggered when a key is pressed down.
KEY_UP3Triggered when a key is released.