public void end ()

Moves the caret to after the last char of the text. This function also has the effect of clearing the selection.