Checks whether the key specified by virtKey is currently pressed.
Furthermore, if you specify the following in the arguments, the value will be TRUE when the lock is on (when the indicator light is lit, if there is one), rather than being TRUE while the keyboard key is being pressed.