any luck with this?
having never used or tested the script, i can only give some random thoughts for your troubleshooting consideration:
did you try adding the script to crontab so it runs at boot time?
crontab -e
@reboot nohup ./home/pi/RetroPie/scripts/es-cec-input.py
(note there is a typo in the script comment "hohup")
double-check your locale & keyboard layout is correct:
Raspi-Config > Localisation Options > Localisation Options
Raspi-Config > Localisation Options > Change Keyboard Layout
i had some strange effect from my keyboard until i set these correctly
(en_US.UTF-8 / Generic Logitech Keyboard)
what is the remote make/model, and how is it connected?
should the vendor id/model match up with what is stored in?:
/etc/udev/rules.d/40-uinput.rules
make sure there are no unsupported keys mapped in /opt/retropie/configs/all/retroarch.cfg
https://github.com/dillbyrne/es-cec-input#supported-keyboard-keys
sorry if this wasn't very helpful, i'm just a measly end-user with not much experience