# shift

> Is Shift held down? (Read Only)

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.IMGUIModule

```csharp
public bool shift { get; set; }
```

### Remarks

Returns true if any Shift key is held down.

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    // Detects if the shift key was pressed
    void OnGUI()
    {
        Event e = Event.current;
        if (e.shift)
        {
            Debug.Log("Shift was pressed :O");
        }
    }
}
```
