I want to record keystrokes as user press a key.Problem with cin is that it will not do this after hitting key I have to press enter this is what I don't want.
Alternatively you can get mulipurpose console lib. I suggest ncurses windows port: pdcurses. It allows you to have more control over console and many useful functions.