             when @direction is Dir.NW then Dir.W
             when @direction is Dir.W then Dir.SW
             else @direction
+        when event.which is Keys.SPACE
+          # Indicate we are jumping
+          unless @jumping
+            @jumping = true
+            @jumpFramesLeft = 8
+
+          # Keep moving same XZ direction
+          @direction
         else @direction
 
     $(window).on 'keyup', (event) =>

    document.body.appendChild(@renderer.domElement)

    @direction = Dir.NONE

    geometry = new THREE.BoxGeometry(1, 1, 1)
    material = new THREE.MeshBasicMaterial(

    )

    # Set up 31x31x31 world.
    @cubes = {}
    for x in [-@worldSize..@worldSize]
      @cubes[x] = {}
      for y in [-(@worldSize * 2 + 3)..-2]
        @cubes[x][y] = {}
        for z in [-@worldSize..@worldSize]
          cube = new THREE.Mesh(geometry, material)
          @scene.add(cube)
          cube.translateX(x)
          cube.translateY(y)
          cube.translateZ(z)
          @cubes[x][y][z] =
            mesh: cube
            solid: true

    # Bind movement events
    $(window).on 'keydown', (event) =>
