RemoteControl.PressCommandKey
-----------------------------

Presses command key on Mac.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [RemoteControl](component_RemoteControl.md) | [2.8](newinversion28.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "RemoteControl.PressCommandKey"; down ) 

**MBS**( **"RemoteControl.PressCommandKey";** /\* Presses command key on Mac. \*/  
**$down**) /\* Pass 1 to press key down or 0 to release it.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| down | Pass 1 to press key down or 0 to release it. | 1 |

### Result

Returns OK on success.

### Description

Presses command key on Mac.  
Same as [RemoteControl.PressKey](RemoteControlPressKey.md) for pressing command key.  
### See also

- [RemoteControl.IsCommandKeyDown](RemoteControlIsCommandKeyDown.md)
- [RemoteControl.PressControlKey](RemoteControlPressControlKey.md)
- [RemoteControl.PressKey](RemoteControlPressKey.md)
- [RemoteControl.PressKeyLater](RemoteControlPressKeyLater.md)
- [RemoteControl.PressOptionKey](RemoteControlPressOptionKey.md)
- [RemoteControl.PressShiftKey](RemoteControlPressShiftKey.md)

This function checks for a license.

Created 18th August 2014 , last changed 24th February 2022

  
[RemoteControl.MoveMouse](RemoteControlMoveMouse.md) - [RemoteControl.PressControlKey](RemoteControlPressControlKey.md)

[HTML Version](RemoteControlPressCommandKey.shtml)