Handle on-the-fly backspace and delete.
Code style fixes.