cursor

var cursor: Int

Setting the cursor moves it to the closest character boundary within the text, and removes the selection.