Fixing backspace to handle text in input

If you had typed a partial word and tried to backspace, it would remove
the <li>s instead of the characters.