How can I position the cursor at the end of the last line of text?

Thanks.