Positions the caret to the position indicated by pos. This function will also clear the selection.
pos
Parameters:
Diagram: TextInputControl