Improve terminal keyboard navigation (alt+left/right/backspace), fixes #181