Patched in fixes for directional keys

Putty seems to ignore some meta+arrow key combinations and sends
incorrect sequences for others. This fix changes those sequences to be
consistent with both what's reported by rxvt-unicode and Mintty