ok ,i agree i did a very confusing keystroke check but for me it works, are you sure you have all my modules that are in the code
look
oh, I dont have keyboard module(
I think you should compile your code in exe file, it will work for everyone
There is how I compile pygame projects:
https://vc.ru/newtechaudit/122327-kompiliruem-kod-python-v-fayl-exe