I have a problem with breaking out of a loop by pressing a key.
I googled around and found msvcrt module but it did not solve my problem.
Here is my code.
while True:
"""some code"""
if *keyboard_input: space* == True:
break
I know it's a easy question but I just can't find the right module to import.
Thanks!