input.IsButtonDown
Checks if an button is down by keycode
Syntax
input.IsButtonDown(keycode:int)
Parameters
keycode
Keycode to check for.
Example
if input.IsButtonDown(1) then
print("Left click is down!");
end
Keylist
For more information about key codes Keylist