Added support for DECCKM (Cursor Keys Mode).
This improves arrow key behaviour when using Mosh - which doesn't work properly with just keypad application mode.