Skip to content
Desktop inputOverview

keyclick

Represents a keyboard key click.

Aliaseskeytap

Details#

Emits key-down followed by key-up with a brief delay for a virtual-key code in 0…255. Out-of-range keys are ignored; this affects foreground desktop input.

Examples#

Example

Luau
if iswindowactive() then keyclick(0x10) end -- Shift