Restructure esc decode loop

This will make it easier to add more codes
Add ctrl-left and ctrl-right to the xterm parser
Add ctrl-left and ctrl-right to the windows parser
Implement wordLeft and wordRight actions

Fixes #2
Implement ctrlW (delete word)