Input event type for keyboard events.
- bool echo - If
truethe key was already pressed before this event. It means the user is holding the key down.
- bool pressed - If
truethe key’s state is pressed. If
falsethe key’s state is released.
- int scancode - Key scancode, one of the
KEY_*constants in @global Scope.
- int unicode - Key unicode identifier when relevant.
Stores key presses on the keyboard. Supports key presses, key releases and echo events.