added basic filtering of non-repeatable backspaces. Working better, but still has problems with auto-inserted matching braces, since extra cursor motions are involved