kb.cmdKey

Syntax kb.cmdKey ()

Params None required.

Action Determines whether the Windows Control key or Mac Command key is now being pressed.

Returns True if the key is being pressed, false otherwise.

Examples Locate a script called examples.WatchKeys. Copy it. Now use the UserLand menu's Agents sub-menu to Open Agents Table. Now paste the script using the Paste command from the Edit menu or by typing Command-V. If background processes are turned on, you
will now be told every time Frontier detects you pressing the Command key.

When you are done experimenting, be sure to delete system.agents.WatchKeys; otherwise, you'll find yourself being interrupted often when you are using Frontier.
edit (@Frontier.finder2Click)

Examine this script. You can see how it uses the kb.cmdKey verb to change its behavior.

Discuss