Added ability to move the text caret around. Fixed a bug in tilemap.