Keyboard.AsyncOSKey

From Xojo Documentation

Read-Only Property (As Boolean )
BooleanValue = aKeyboard.AsyncOSKey

New in 2005r1

Supported for all project types and targets.

If True, the OS key is depressed. On Windows and Linux, this is the key with the Windows flag; on Macintosh, it is the Command key.

Example

This example detects whether the OS key was depressed. It is in the Action event of a Timer.

If Keyboard.AsyncOSKey Then
// handle the keyboard event here....
MessageBox("keyboard event detected...")
End If