I am creating a game, and just to get the logic down I am only using the console window to test the process. I am prompting the user to hit either the 'd' or the 'p' key without requiring to press the Enter key. If the user presses either one it will branch off to its subroutine. How do I go about waiting for the input of a single key?
This is in Java. Sorry for the confusion