allows backspace key to erase previously entered
characters, autoindent and newlines