Now that I understand the question, have you tried changing the Text object with a Textarea object? If you use a Textarea object, it displays a cursor at the end of the text.
One thing to remember, you will have to set the Textarea focused to see the cursor and if it ever loses focus, the cursor will disappear.
I edited your example with the suggested change and attached it.
I hope that helps and good luck with your project.