Fix backspace activation of autocomplete, add test for backspacing