I'm coding a program that, ideally, will work on Windows AND Linux. I would also, as a bonus, like it to work on Android.

I need a way to wait for keyboard presses from the user. Not using 'cin' but rather, live keyboard presses (checking to see if a key, any key is pressed, and reacting immediately, not waiting for the user to press Enter/Return).

Are there any Cross-Platform ways of doing this? I'm using Conio.h but it is Windows only.

Your assistance is greatly appreciated!