 
   #Customize Options
   setMoveValue : (value) ->
-    User.Configuration.moveValue = (Number) value
-
-    User.Configuration.push()   
+    Model.User.Configuration.moveValue = (Number) value
+
+    Model.User.Configuration.push()   
 
   setRotateValue : (value) ->
-    User.Configuration.rotateValue = (Number) value 
-    User.Configuration.push()   
+    Model.User.Configuration.rotateValue = (Number) value 
+    Model.User.Configuration.push()   
 
   setScaleValue : (value) ->
-    User.Configuration.scaleValue = (Number) value  
-    User.Configuration.push()         
+    Model.User.Configuration.scaleValue = (Number) value  
+    Model.User.Configuration.push()         
 
   setMouseRotateValue : (value) ->
-    User.Configuration.mouseRotateValue = (Number) value
-    User.Configuration.push()         
+    Model.User.Configuration.mouseRotateValue = (Number) value
+    Model.User.Configuration.push()         
 
   setMouseInversionX : (value) ->
     if value is true
-      User.Configuration.mouseInversionX = 1
-    else
-      User.Configuration.mouseInversionX = -1
-    User.Configuration.push()         
+      Model.User.Configuration.mouseInversionX = 1
+    else
+      Model.User.Configuration.mouseInversionX = -1
+    Model.User.Configuration.push()         
 
   setMouseInversionY : (value) ->
     if value is true
-      User.Configuration.mouseInversionY = 1
-    else
-      User.Configuration.mouseInversionY = -1
-    User.Configuration.push()         
+      Model.User.Configuration.mouseInversionY = 1
+    else
+      Model.User.Configuration.mouseInversionY = -1
+    Model.User.Configuration.push()         
 
   setMouseActivity : (value) ->
-    User.Configuration.mouseActive = value
-    User.Configuration.push()       
+    Model.User.Configuration.mouseActive = value
+    Model.User.Configuration.push()
     if value is false
       @input.mouse.unbind()
       @input.mouse = 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()

      @initGamepad()    

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