Instead of bothering with it by editing this and disable/enable that in LibreElec/Kodi why don't you just buy a simple, cheap Remote Control like this:
https://www.amazon.co.uk/Coycoye-Contro…aps%2C75&sr=8-4
I've got this Remote Control by myself and it works "right out of the Box" with LibreElec on my PC.
Hello, by chance do you know if it works well (I'm still searching a good/compatible one out of the box) even on the Libreelec/Raspberry Pi4?
Many Thanks.