keyrelease Synchronous
Send a key-up event to finish a hold started with keypress. Use the same virtual-key code as the original press.
Luau
keyrelease(keyCode: number) -> ()Parameters
| Parameter | Type | Description |
|---|---|---|
keyCode | number | Windows virtual-key code. Kawaii maps supported codes to Android key events; for example, 0x41 is A and 0x0D is Enter. |
Returns
()No values.
Usage notes
A release is not a full key tap; keyclick performs both halves.
Example
Luau
if isrbxactive() then
keypress(0x20) -- Space
task.wait(0.1)
keyrelease(0x20)
end