set the cursor to the end of its text