using UnityEngine.SceneManagement; void Update() { if (Input.GetKey(KeyCode.Escape)) { SceneManager.LoadScene("Main Menu"); } }