Adds logic to better handle left/right/backspace/delete with selections.