       switch event.which
         when KEY_UP   then @selectHistory +1; event.preventDefault()
         when KEY_DOWN then @selectHistory -1; event.preventDefault()
-    else
+    else if event.shiftKey
       switch event.which
+        when KEY_TAB then @indentInput(-1); event.preventDefault()
+    else
+      switch event.which
+        when KEY_TAB    then @indentInput(+1); event.preventDefault()
         when KEY_RETURN then @processInput(); event.preventDefault()
   
   processInput: ->

  clearInput: ->
    @input.val null
    return
  
  autosizeInput: ->
    input = @input[0]

  obj

class Console
  KEY_TAB    =  9
  KEY_RETURN = 13
  KEY_LEFT   = 37
  KEY_UP     = 38
