Keyboard.OSKey
From Xojo Documentation
Read-Only Property (As Boolean )
If True, the OS key was depressed when the current method or event handler began. On Windows and Linux, this is the Windows flag key; on Macintosh, it is the Command key.
Example
This example detects whether the OS key was depressed on the user’s platform. The code is in the Action event of a Timer.