How to run a function when a key is pressed?
08:36 20 Aug 2018

I've been searching on how to do it without pygame, but I haven't found a way.

Basically all I want to do is to press a key and play a sound, but I do not know how to register keystrokes in python.

edit: Forgot to mention, for Windows.

python-3.x windows pycharm