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.
Luau
keyclick(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
The key is routed through the local input bridge, so the focused interface decides what the tap does.
Example
Luau
if isrbxactive() then
keyclick(0x0D) -- Enter
end