       "m" : => @surfaces[0].draw_surface = +!@surfaces[0].draw_surface
       "p" : => @surfaces[1].draw_surface = +!@surfaces[1].draw_surface
 
-      "d" : => @debug_mode = +!@debug_mode
+      "t" : => @debug_mode = +!@debug_mode
 
       # thresholds
       "," : => @surfaces[0].threshold


    new Input.Keyboard(

      "w" : => @movement[2] += @forward_speed * @dt; @accel = true
      "s" : => @movement[2] -= @forward_speed * @dt; @accel = true
      "d" : => @movement[0] += @strafe_speed * @dt;  @accel = true
      "a" : => @movement[0] -= @strafe_speed * @dt;  @accel = true

      "r" : => @movement[1] += @strafe_speed * @dt; @accel = true
      "f" : => @movement[1] -= @strafe_speed * @dt; @accel = true

      "up" :    => @rotation[0] =  @dt * @TURN_SPEED
      "down" :  => @rotation[0] =- @dt * @TURN_SPEED
      "right" : => @rotation[1] =  @dt * @TURN_SPEED
      "left" :  => @rotation[1] =- @dt * @TURN_SPEED
      "q" :     => @rotation[2] =  @dt * @ROLL_SPEED
      "e" :     => @rotation[2] =- @dt * @ROLL_SPEED


    )


  initMouse : ->

    $(window).on "mousemove",(event) =>
      @parameters.mouseX = event.clientX / window.innerWidth
      @parameters.mouseY = 1 - event.clientY / window.innerHeight

    new Input.Mouse(
      @canvas
      "x" : (distX) =>

      "y" : (distY) =>

    )

      # var x=event.clientX;
      # var y=event.clientY;
