         isShiftDown = true
       when 17
         isCtrlDown = true
+
   onDocumentKeyUp = (event) ->
     switch event.keyCode
       when 16
         isShiftDown = false
       when 17
         isCtrlDown = false
+
   save = ->
     window.open renderer.domElement.toDataURL("image/png"), "mywindow"
     false
+
   animate = ->
     requestAnimationFrame animate
     render()
+
   render = ->
     theta += mouse2D.x * 3  if isShiftDown
     camera.position.x = 28 * Math.sin(theta * Math.PI / 360)

        voxel.position.x = Math.floor(position.x / 1) * 1 + 0.5
        voxel.position.y = Math.floor(position.y / 1) * 1 + 0.5
        voxel.position.z = Math.floor(position.z / 1) * 1 + 0.5
        console.log 'voxel.position', voxel.position
        voxel.matrixAutoUpdate = false
        voxel.updateMatrix()

    document.addEventListener( 'keydown', onDocumentKeyDown, false )
    document.addEventListener( 'keyup', onDocumentKeyUp, false )

  onDocumentMouseMove = ( event ) ->
    event.preventDefault()
    #mouse2D.x = ( event.clientX / window.innerWidth ) * 2 - 1
