method
Input.press
Input.press(key)
Injects a held key into the input state — the same idea as Godot's action_press. It persists until Input.release, and combines with the platform's real keys, so an AI, a replay, a tutorial, or the network can drive input exactly as a player would. Deterministic on every target.
Example
program Demo {
entry {
Input.press('w')
Input.poll()
if Input.key_down('w') { print(1) }
}
}