Possible Duplicate:
how to handle key press event in console application
a simple question.
I am writing a simple text based adventure game for fun and I am stuck on the first part already! How can I make my console check for key presses I.E: press enter to continue!
You can use
To read 1 key. You could then do something like this:
Or:
And if you do not care if the user types anything but presses enter after, you could just do: