Input & Time

Key Just Pressed

True only on the single frame a key goes down.

keycode
Key Just Pressed
Out
Node image coming soon

Usage

The one to use for actions that must fire once per press — jumping, shooting, opening a menu. Holding the key does not keep it true.

Inputs

TypeNameDescription
intkeycode The key to test.

Outputs

TypeNameDescription
boolOut True on the frame the key went down.