IsInputKeyDown
From Onset Developer Wiki
Description
Check if a key is currently pressed.
Syntax
IsInputKeyDown(key)
Parameters
- key
The key to check.
Return Value
- Returns true if it is pressed, false otherwise
Example
AddEvent("OnGameTick", function()
if IsInputKeyDown("Hyphen") then
print("You are holding down the "-" key.")
end
end)