keyclick Synchronous

Send one complete press-and-release key event. It is the simple choice for a tap when there is no reason to hold the key.

Syntax
Luau
keyclick(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

The key is routed through the local input bridge, so the focused interface decides what the tap does.

Example

Example
Luau
if isrbxactive() then
    keyclick(0x0D) -- Enter
end
Kawaii documentation