public void nextWord ()

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