         keydown = (e) =>
             @update()
             key = keybord_key(e)
-
             if key == "space" or key == "enter" or key == "backspace" or key == "tab"
                 @undo.snapshot()
-
-            #print "key press", key
             @con.socket.emit("keypress", key)
             if @keymap[key]?
                 @keymap[key]()

                            caret_text = ""
                        top = $("#line"+line[0]).position().top + 100
                        @$caret_text.html(html_safe(caret_text))
                        print caret_text
                        @$caret_line.css("top", top)
                        @$caret_char.html(html_safe(text[at..end-1]))
                        @$caret_tail.html(html_safe(text[end..text.indexOf("\n", end)]))

        @$pad.val(text_state[0])
        @$pad[0].selectionEnd = text_state[1][0]
        @$pad[0].selectionStart = text_state[1][1]
        @$holder.animate(scrollTop: text_state[2])
        @update()

