@Jjjet
Hello;
Allow me to welcome you to the HP forums!
Some older BIOSs have an option to enable USB legacy settings, and sometimes, those have to be enabled in order to detect some USB devices, including mice and keyboards.
The bigger problem is that HP does not provide Linux drivers (except in very rare conditions) and without those, your PC is not going to function at all well.
Your best bet for Linux support is to contact the support forum for the Linux distro you are using. Folks there will be familiar with driver and hardware problems and are in a much better position to assist you.
Good Luck
I am a volunteer and I do not work for, nor represent, HP