Skip to content
Desktop inputOverviewNew · 0.744

iskeydown

Describe whether a key is currently held down.

Details#

Reads whether a Windows virtual key is currently pressed. Keys outside 1…254, a locked window or an unusable target window produce false. This does not consume the key event.

Examples#

Example

Luau
print("Space held:", iskeydown(0x20))