I made a game in python and I want to use the keyboard to control the game but it not work.
I could not find the module in Pac-man so I used
pip install keyboard
I found that the keyboard module needed sudo so I ran it with sudo and I got this:
$ sudo python Snake_play.py Traceback (most recent call last): File "Snake_play.py", line 6, in <module> import keyboard ModuleNotFoundError: No module named 'keyboard'
can I not use the keyboard module in Linux?
is there an alternative?