Determines whether a keyboard key is up or down at the time the method is called, and whether the key was pressed after a previous call to KeyState.


KeyState( Key )


Key - the keyboard key to check. Can be one of the KeyCode property values.

Return Value

One of the following values:

Value Description
0 The key was not pressed.
non-zero The key was pressed.

The CHM file was converted to HTML by chm2web software.