How to detect when the enter key is pressed
I'm using a texteditbox on a panel to take input from the user. I want to process the contents of the input box when the enter key is pressed in the edit box. I'm wondering as to how I would be able to detect the enter key being pressed? Any pointers would be appreciated. Thanks in advance.