Could this be a potential solution..?

https://retropie.org.uk/forum/topic/628/retropie-and-kodi-mouse-keyboard-usb-storage-compatibility-issues/2