Determining the State of a Key on the Keyboard
.NET Framework 1.1 does not provide a managed way to determine if a key is pressed or not except for modifier keys (Control.ModifierKeys
). GetAsyncKeyState
can be used to determine if a key is pressed:
Usage: