Just as it says. It causes the execution of your program to pause until you hit a key. It keeps the console window open so you can look at the output. You don't always need it. You can do a breakpoint instead, or use "Run to cursor", or use alternate input methods, or run without debugging, etc.
You easily could have found out what it does by running your program both with and without the pause.