setFocus question

when I use Selection.setFocus() and my input textBox already has text in it, is there a way to make the cursor appear at the end of the text so that the user is positioned to start appeneding text to what already exists?

thanks