term.js: Ignore application keypad mode for arrow keys

Although this goes against the specification, this is what PuTTY (and apparently xterm) do, and is required for arrow keys to work in Midnight Commander.

The relevant code in PuTTY is in the `format_arrow_key` function, in the terminal.c file.