This adds support for using Ctrl+Left, Alt+Right, Shift+Up, etc. keys on some terminals.
Fixes: #183 and #169