How to handle key press events in C++
You won't find anything in the standard library for that. It's all platform-dependent. In Windows, you have functions like GetAsyncKeyState
to get the state of a key on the keyboard for example.
SDL and SFML both have platform-independent event handling.