I need to detect a keystroke, without the user pressing enter. What's the most elegant way? I.e. If the user hits the letter Q, without pressing enter, the program does something.