Put cursor at the end of text in text input window