But of course I’m not doing anything with my keyboard!
I did see that part of the error message and was confused by it. The error occurs regardless if I execute the script in Command Prompt or PyCharm. I simply run it and don’t touch any keyboard or mouse until the error comes up.