keyrelease
Queues a key-up event for the game. Use it to release a key previously held with keypress.
Syntax
keyrelease(key: number | string) -> ()
Also available as
key_release
Parameters
| Parameter | Type | Description |
|---|---|---|
key | number or string | Supported virtual-key code or key name. |
Description
A key can be a supported Windows virtual-key number from 0 through 255 or a recognized name such as Space, Enter, LeftShift or F1 through F24. These events enter the current game instance; they do not type into arbitrary desktop applications. Unsupported keys and an unavailable or full input queue raise errors.
Example
keypress("Space")
task.wait(0.1)
keyrelease("Space")
These are Game executor contracts. Check build requirements and session lifetimes before using them.
