Handle the backspace key (fixes #2)
Make some of the remove-item functionality reusable