Added support for cursor keys in ^[OA/B/C/D format