So, I am planning on designing a dungeon crawler (like Nethack), and I was wondering how I could get the user's input for moving the player. I originally planned to get a character input (W,S,A, or D) and then when the user presses enter, the movement takes place.
However, now I'd like to implement this without the mandatory enter press, so that merely pressing W would move the player forward by one space. I don't really need syntactically correct code, just pseudo-code of a concept would suffice.