@salvaliebana good to know you solved it. But can you share how did you solve?

I myself used this method I described here:

https://retropie.org.uk/forum/topic/2719/keyboard-stopped-working-after-i-played-around-in-the-controller-config-in-rtgui/2