added CaretX and CaretY (moveUp and moveDown not yet working)