keyrelease Synchronous

Release the key identified by its numeric key code. Use it to end a hold started by keypress. Releasing a key is a separate action from pressing it and should be part of cleanup for an input interaction.

Syntax
Luau
keyrelease(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
    keypress(0x41) -- A
    keyrelease(0x41)
end
Kawaii documentation