Skip to content
Desktop inputOverviewNew · 0.744

iskeytoggled

Describe a key's toggle state.

Details#

Reads the toggle bit for a Windows virtual key such as Caps Lock. Returns false for keys outside 1…254 or when the target window is locked/unusable; this differs from a held-key check.

Examples#

Example

Luau
print("Caps Lock:", iskeytoggled(0x14))