keyclick
Presses and releases a key.
Syntax
Signature
keyclick(Code: number) -> booleanAliases
keytap
Parameters
| Parameter | Type | Description |
|---|---|---|
Code | number | Windows virtual-key code from 8 to 254. |
Returns
| Type | Description |
|---|---|
boolean | Whether the platform accepted both events. |
Notes
Code uses Windows virtual-key numbering from 8 through 254. macOS translates supported codes to native keys. Invalid codes raise an error.
Example
Luau
local Result = keyclick(65)
print(Result)