     mouseDown = 0
     return
 
-  canvas = document.getElementById('screen')
   canvas.tabIndex = 1000
   ctx = canvas.getContext('2d')
 
   socket.on 'init', (data) ->
     canvas.width = data.width
     canvas.height = data.height
-    canvas.addEventListener 'keydown', handleKeydown
-    canvas.addEventListener 'mousedown', handleMouseDown
-    canvas.addEventListener 'mouseup', handleMouseUp
-    canvas.addEventListener 'mousemove', handleMouseMove
-    canvas.addEventListener 'contextmenu', handleMouse2Down
     $scope.vmIsRunning = true
     return
 

  return

app.controller 'VmController', ($scope, $timeout, $http, $interval, $rootScope, os, socket) ->
  # Variables
  mouseDown = 0
  # Timer in seconds
  timer = 600
  # Canvas
  canvas = document.getElementById('screen')
  # Keycode converter
  codeConverter = new KeysymsCodeConverter()
  $scope.vmIsRunning = false


    return

  isCapslock = (e) ->
    e = if e then e else window.event
    charCode = false
