The problem is that you're creating an endless loop. The game never gets past the While-statement, so it'll hang there forever.
It's important that you always have some actions to get out of the loop, and that you understand when you should use a while loop and when you shouldn't. If you for instance remove the While condition in your example the game will work, and the text will still be set to 'Yaaay' every tick.