Hi, How can I find out which key the user pressed?

I'm writing the game SNAKE in C++ as one of my first games in C++ and need to know how I can get the key pressed by the user.

Thanks In Advance!!!