keyrelease Synchronous
Release the key identified by its numeric key code. Use it to end a hold started by keypress. Releasing a key is a separate action from pressing it and should be part of cleanup for an input interaction.
Luau
keyrelease(keyCode: number) -> ()Parameters
| Parameter | Type | Description |
|---|---|---|
keyCode | number | Numeric key code understood by the input bridge. |
Returns
()This function returns no values.
Example
Luau
-- Focus an editable field in your own test UI during this delay.
task.wait(3)
if isrbxactive() then
keypress(0x41) -- A
keyrelease(0x41)
end