I added a sprite to the example made by @Katala with clear button
Push the pink aquare to clear the text. Easy right?
Have a look at the 1 event I added for that effect.
Learn how to work with C2 and you won't have to ask for everything.
Have you seen the green button on top of this page that says tutorials?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..