Description:
Returns true if a key is currently pressed.
Command Parameters:
Parameter
|
Type
|
Description
|
key
|
byte
|
The key that is held down
|
Returns:
Type
|
Description
|
Boolean
|
True if key is currently pressed
|
Examples:
local key = 0x2D --insert
local state = isKeyPressed(key)
print(state)