# Shift

> Is Shift held down?

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
Shift = 1
```

### Remarks

Additional Resources: [Event.shift](/engine/6000.7/script-reference/unityengine/event/shift.md).

### Examples

```csharp
using UnityEngine;
using UnityEngine.UIElements;

[RequireComponent(typeof(UIDocument))]
public class Example : MonoBehaviour
{
    void OnEnable()
    {
        var button = new Button();
        button.RegisterCallback<ClickEvent>(e =>
        {
            if ((e.modifiers & EventModifiers.Control) != 0)
            {
                if ((e.modifiers & EventModifiers.Shift) != 0)
                    Debug.Log("Control+Shift is pressed");
                else
                    Debug.Log("Control is pressed");
            }
            else if ((e.modifiers & EventModifiers.Shift) != 0)
            {
                Debug.Log("Shift is pressed");
            }
        });
        GetComponent<UIDocument>().rootVisualElement.Add(button);
    }
}
```
