Support alternate Home/End encoding

This encoding is used by rxvt-unicode
Support alternate encoding of Ctrl-Left and -Right

This encoding is used by rxvt-unicode