Garry's Mod Wiki

CMoveData:KeyPressed

  boolean CMoveData:KeyPressed( number key )

Description

Returns whether the key was pressed. If you want to check if the key is held down, try CMoveData:KeyDown

Arguments

1 number key
The key to test, see IN enum

Returns

1 boolean
Was the key pressed or not.