keyrelease Synchronous

Send a key-up event to finish a hold started with keypress. Use the same virtual-key code as the original press.

Syntax
Luau
keyrelease(keyCode: number) -> ()

Parameters

Function parameters
ParameterTypeDescription
keyCodenumberWindows 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

Example
Luau
if isrbxactive() then
    keypress(0x20) -- Space
    task.wait(0.1)
    keyrelease(0x20)
end
Kawaii documentation