Help with TextField

Hello, I am quite new to programming, and I have learn’t quite a lot.
I thought I would start off practicing by making a simple text game.

However I have run into a problem, I know how to make it so if I type something like “open door”, it will print something like “you open the door”, but it prints the message as soon as I am finished typing the message.

So basically my question is, how would I be able to script a line where it will print the message when I type something, but only after I press enter?

By the way I am using c#.

Please help…:cry:

Never mind I got it, lol. :smile: