       @initGamepad()    
 
   setMotionSensorActivity : (value) ->
-    User.Configuration.motionsensorActive = value
-    User.Configuration.push()   
+    Model.User.Configuration.motionsensorActive = value
+    Model.User.Configuration.push()   
     if value is false
       @input.deviceorientation.unbind()
       @input.deviceorientation = null


    
      #ScaleTrianglesPlane
      "l" : -> View.scaleTrianglesPlane -User.Configuration.scaleValue
      "k" : -> View.scaleTrianglesPlane User.Configuration.scaleValue

      #Move
      "w" : -> View.move [0, User.Configuration.moveValue, 0]
      "s" : -> View.move [0, -User.Configuration.moveValue, 0]
      "a" : -> View.move [User.Configuration.moveValue, 0, 0]
      "d" : -> View.move [-User.Configuration.moveValue, 0, 0]
      "space" : -> View.move [0, 0, User.Configuration.moveValue]
      "shift + space" : -> View.move [0, 0, -User.Configuration.moveValue]

      #Rotate in distance
      "left"  : -> View.yawDistance User.Configuration.rotateValue
      "right" : -> View.yawDistance -User.Configuration.rotateValue
      "up"    : -> View.pitchDistance -User.Configuration.rotateValue
      "down"  : -> View.pitchDistance User.Configuration.rotateValue
      
      #Rotate at centre
      "shift + left"  : -> View.yaw User.Configuration.rotateValue
      "shift + right" : -> View.yaw -User.Configuration.rotateValue
      "shift + up"    : -> View.pitch -User.Configuration.rotateValue
      "shift + down"  : -> View.pitch User.Configuration.rotateValue

      #misc keys
      "n" : -> Helper.toggle()


  #Customize Options
  setMoveValue : (value) ->
    Model.User.Configuration.moveValue = (Number) value

    Model.User.Configuration.push()   

  setRotateValue : (value) ->
    Model.User.Configuration.rotateValue = (Number) value 
    Model.User.Configuration.push()   

  setScaleValue : (value) ->
    Model.User.Configuration.scaleValue = (Number) value  
    Model.User.Configuration.push()         

  setMouseRotateValue : (value) ->
    Model.User.Configuration.mouseRotateValue = (Number) value
    Model.User.Configuration.push()         

  setMouseInversionX : (value) ->
    if value is true
      Model.User.Configuration.mouseInversionX = 1
    else
      Model.User.Configuration.mouseInversionX = -1
    Model.User.Configuration.push()         

  setMouseInversionY : (value) ->
    if value is true
      Model.User.Configuration.mouseInversionY = 1
    else
      Model.User.Configuration.mouseInversionY = -1
    Model.User.Configuration.push()         

  setMouseActivity : (value) ->
    Model.User.Configuration.mouseActive = value
    Model.User.Configuration.push()
    if value is false
      @input.mouse.unbind()
      @input.mouse = null
