If you just need to pause a loop or script, and you're happy to press Enter instead of any key, then read
on its own will do the job.
do_stuff
read
do_more_stuff
It's not end-user friendly, but may be enough in cases where you're writing a quick script for yourself, and you need to pause it to do something manually in the background.