strangely I wasn't able to run this without control issues (right arrow didn't work) under python 3.11 with pygame-ce. I tried pygame under 3.10 and it worked.