# commandKey

> Returns true if the Windows/Cmd key is pressed.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.UIElements](/engine/6000.6/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public bool commandKey { get; }
```

### Remarks

Refer to [EventModifiers.Command](/engine/6000.6/script-reference/unityengine/eventmodifiers/command.md) for more information.
