Question: how to install pynput windows?
Answer: Open your . py file with Pycharm.
Put your cursor next to the import pynput line.
PyCharm will show the Lamp icon next to it (most definitely it will be RED)
If it's RED, click the Lamp icon and select option "install pynput package".
Once it's installed, run your script again.