rest button67567567

is there a code that if i press esc its rests the game

Simple

if (Input.GetKey (KeyCode.Escape)) {
  Application.LoadLevel (Application.loadedLevel);
}

You need to have the level added in the build settings though.