public void endOfNextWord ()

Moves the caret to the end of the next word. This function also has the effect of clearing the selection.