Keyboard works in Android and windows except in endeavour OS

I’ve got two keyboards one is HP one and another is foxin one. Both are wired. HP one works perfectly fine in endeavour OS and it also works in bios. Whereas foxin one doesn’t work. It gets detected in bios but doesn’t work at all. It works in Android and windows.