Player:KeyPressed
Description
Gets whether a key was just pressed this tick.
This function will return false if a key press (such as +use) was consumed by an Entity.
Arguments
Returns
Example
Prints whenever the first player first starts pressing +forward key (w on QWERTY keyboards).
Garry's Mod
Rust
Steamworks
Wiki Help