Input & Time

Keycode

A keyboard key, picked from a visual keyboard, as its int keycode.

Keycode
keycode
Node image coming soon

Usage

Prefer it over typing a raw number into a Value node: the editor shows you a keyboard and you click the key. Wire its output into Key Pressed or Key Just Pressed.

On the node

key
Picked from the keyboard on the node. A–Z, Digit0–Digit9, Space, Enter, Escape, Shift, Control and the four arrows.

Outputs

TypeNameDescription
intkeycode The key's code.