     @messagebox.fadeIn(600)
 
   handleEvent: (event) =>
-    if @status == 'playing'
+    if event.which == 27 or event.which == 8
+      @playAgain(@maze.dimensions[0])
+    else if @status == 'playing'
       if event.which == 82 # R key
         @goUp()
       else if event.which == 70 # F key

            href: '#'
        }).append(text).click(callback)

  playAgain: =>
    @destroy( =>
        new LevelChooserUI(new LevelChooser(@maze.dimensions[0] + 1), @frame,
            @messagebox, @viewport)
    )

  tweet: =>

        @goRight()
      else if event.which == 40 # Down key
        @goBackward()
    else if @status == 'frozen'
       if event.which == 80 # P key
         @playAgain(@maze.dimensions[0] + 1)
       else if event.which == 84 # T key
         @tweet()

