As far as I know there is no functions for determining keypresses, however I believe there many be a way around this for detecting ANY key press. Sorry I don't know how to determine a given key press such as A or B.
Although this is not C++ code you should be able to implement it.
Code:
char key;
puts("press any key...");
getch(key);
if(getch != '\0')
{
code for "not equal to null" (in other words, if a key is pressed)
}
else
{
code for "is equal to null" (in other words, if a key is NOT presssed)
}
I hope this helps you in some way. If not, then I am clueless.