i used
ConsoleKeyInfo info;
do
{
info = Console.ReadKey();
} while (info.KeyChar != '\n' &&
info.KeyChar != '\r');
to loop until i get an enter press
if you have only input stream or textBox
you can just do an if
statement. in case of console use my example, in case of textBox
read it's text