Garry's Mod Wiki

CMoveData:KeyWasDown

  boolean CMoveData:KeyWasDown( number key )

Description

Returns whether the key was down or not.

Unlike CMoveData:KeyDown, it will return false if CMoveData:KeyPressed is true and it will return true if CMoveData:KeyReleased is true.

Arguments

1 number key
The key to test, see IN enum

Returns

1 boolean
Was the key down or not