Send xterm key codes