Cursor.lockState = CursorLockMode.Locked;
#if UNITY_EDITOR if(Input.GetKeyDown(KeyCode.E)) #else if(Input.GetKeyDown(KeyCode.Escape)) #endif { ...