i was implementing a command window using a textbox control in C#. I need to detect if enter key is pressed to read the command. How can i check if enter is pressed? thanks in advance.