Mmmh IDK what could be done to fix it, I will have to check renpy doc
You may also try an external Bluetooth keyboard to see if that makes a difference.