# LeftShift

> Left shift key.

## Definition

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

```csharp
LeftShift = 304
```

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.LeftShift))
        {
            Debug.Log("Left Shift key was pressed");
        }

        if (Input.GetKeyUp(KeyCode.LeftShift))
        {
            Debug.Log("Left Shift key was released");
        }

        if (Input.GetKey(KeyCode.LeftShift))
        {
            Debug.Log("Left Shift key is being pressed");
        }
    }
}
```
