I started c++ recently and I know the basics like input and output, classes,arrays ect. I want to know how to make something happen if a key is pressed, not like ">>cin>>" where you enter the character and then have to press enter.
Generally you would only do this in a graphical program that has a real window, not in the console. If you're interested, you can look up SFML and SDL (I recommend SFML). It's a lot easier than you think.
Also, it's actually hard to try and do this in the console - the console is great for test programs and I/O but you should not ever try to use it for this kind of interaction.