I have a program where a certain sound is played corresponding to a key pressed on the keyboard. But every time I press a key, I have to press 'enter' for the sound to be played. What I actually want to do is to press the key without having to press enter and a sound should be played. How can I do this?