# backButtonLeavesApp

> Whether the Back button hands control to the operating system instead of the application.

## Definition

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

> **Warning:**
>
> **Deprecated.** Input.backButtonLeavesApp is deprecated and will be removed in a future release. Use Application.backButtonLeavesApp instead.
>
> **Upgrade to** [Application.backButtonLeavesApp](/engine/6000.7/script-reference/unityengine/application/backbuttonleavesapp.md)

```csharp
public static bool backButtonLeavesApp { get; set; }
```

### Remarks

**Note**: This property has moved to [\_backButtonLeavesApp](/engine/6000.7/script-reference/unityengine/application/backbuttonleavesapp.md), because it controls application lifecycle rather than input. Use `Application.backButtonLeavesApp`; `Input.backButtonLeavesApp` reads and writes the same underlying flag and will be removed.

Only usable on Android or Universal Windows Platform (UWP). On all other platforms the property is a no-op: the getter always returns false and the setter has no effect.

The default value is false.

When the value is true, the operating system handles **Back**: it minimizes the application on Android and suspends it on UWP. Otherwise, the button is delivered to the application as the Escape key, which you can read by calling [Input.GetKey](/engine/6000.7/script-reference/unityengine/input/getkey.md) and passing [KeyCode.Escape](/engine/6000.7/script-reference/unityengine/keycode/escape.md).
