keyclick Synchronous

Press and release the key identified by its numeric key code. Use it for one complete key tap without leaving the key held. Kawaii accepts numeric virtual-key codes; this does not enter an arbitrary text string.

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

Parameters

Function parameters
ParameterTypeDescription
keyCodenumberNumeric key code understood by the input bridge.

Returns

()

This function returns no values.

Example

Example
Luau
-- Focus an editable field in your own test UI during this delay.
task.wait(3)
if isrbxactive() then
    keyclick(0x41) -- A
end
Kawaii documentation