       creatorString: ''
       isOwner: false
     })
-
-    $(window).keydown (event) ->
-      # prevent space from scrolling on the page since it can be used as a control in the game.
-      if (event.keyCode == 32 && event.target == document.body)
-        event.preventDefault()
 
     if utils.getQueryVariable 'dev'
       @supermodel.shouldSaveBackups = (model) ->  # Make sure to load possibly changed things from localStorage.

      @session.updateKeyValueDb(_.cloneDeep(@surface.world.keyValueDb))
      @session.saveKeyValueDb()

  destroy: ->
    @levelLoader?.destroy()
    @surface?.destroy()
    @god?.destroy()
    @goalManager?.destroy()
    @scriptManager?.destroy()
    delete window.world # not sure where this is set, but this is one way to clean it up
    $(window).off("keydown")
    super()

      worldCreationOptions = {spells: @spells, preload: false, realTime: true, justBegin: false, keyValueDb: @session.get('keyValueDb') ? {}, synchronous: true}
      @god.createWorld(worldCreationOptions)
      @willUpdateFrontEnd = true
      @subscribeShortcuts()
    .catch (e) =>
      throw e if e.stack
      @state.set('errorMessage', e.message)
