if input.KeyDown("E") then
GamePrint("E is being pressed!");
end;
Returns true if the given key is being pressed
- key: the key [string]
Returns true or false depending on if the key is pressed
This function should be called from a script thats running every frame, it will likely not work correctly otherwise.