GM:PlayerButtonDown
This hook is predicted. This means that in singleplayer, it will not be called in the Client realm.
Description
Called when a player presses a button.
This will not be called if player has a panel opened with keyboard input enabled, use PANEL:OnKeyCodePressed instead.
Arguments
Example
Prints the person who pressed the key.
Example
Prints the person who pressed the key if it is the T key.