lovr.system.isKeyDown

Returns whether a key on the keyboard is pressed.

down = lovr.system.isKeyDown(key)

Arguments

NameTypeDescription
keyKeyCode The key.

Returns

NameTypeDescription
downboolean Whether the key is currently pressed.

See also