I have a script which uses the arrows on the keyboard to provide user input. The script required the keyboard package to be installed with pip install keyboard.
The script works fine outside the virtual environment if I run it with sudo.
I would like to be able to run that script inside the virtual environment without giving root access to that environment.
Is there a way to allow the virtual env to use the keyboard without giving it root privileges?
PS my keyboard is connected to the Pi via bluetooth, not sure if that makes a difference.