I'm writing a console based app and need to capture the users keystrokes. I've tried sscanf,getch,getcchar,etc but they only return when the user presses enter. How can I capture each keystroke when it happens?

thanks