term.js: Consult application cursor (not keypad) mode for arrow keys

Patch by satoiha from here:
https://github.com/chjj/tty.js/pull/66/commits#issuecomment-13616867
Merge pull request #66 from CyberShadow/fix-mc-arrow-keys

term.js: Ignore application keypad mode for arrow keys