KeyState Object | |||
The KeyState object is a global object which can be used to determine the state of various virtual keys. Properties: Control The LeftControl, LeftShift, and LeftMenu properties return boolean values indicating the state of the Control, Shift, and Menu buttons on the left-hand side of the keyboard (true = button is down, false = button is up). The RightControl, RightShift, and RightMenu properties return the state of the corresponding buttons on the right-hand side of the keyboard. The Control, Shift, and Menu properties can be used to indicate whether either button is down without distinguishing between left and right. All of these properties are Read Only, and are available only at run-time. Example:
|