VT codes sent by arrow keys

Key Cursor mode Application mode
Up CSI A SS3A
Down CSI B SS3B
Right CSI C SS3C
Left CSI D SS3D