   HANDLING KEY EVENTS
   ###
 
-  keyDownPerformed:(mainView, event)->
+  keyDownPerformed: (mainView, event) ->
 
     switch event.which
       when 40, 38


  # bad naming because of backwards compatibility i didn't
  # change the method name during refactoring - Sinan 10 May 2012
  selectItem:(item, event = {})->

    return unless item?



    return itemsOrdered

  moveItemToIndex: (item, newIndex) ->

    newIndex = Math.max(0, Math.min(@itemsOrdered.length-1, newIndex))
    @itemsOrdered = @getListView().moveItemToIndex(item, newIndex).slice()
