Mac mini M2 keyboard and mouse usb hub not working
I just bought a Mac Mini M2. I have USB keyboard and mouse which work fine when plugged directly into the usb-A ports on the back of the computer.
However, they do not function when not connected directly to the computer. I have an anker hub which I have connected the keyboard and mouse to - I've plugged this into the usb-c ports on the back of the computer. The keyboard does not light up and does not function, and the mouse also does not function in this setup.
I have also tried connecting them to a Switss KVM switch, which connects to the computer via a USB-B to USB-A cable (connected into the the USB-A ports on the back of the computer).
Both the hub and the KVM switch work fine with my other computer (a lenovo windows laptop), and when I plug my external hard drive into the computer via the USB hub that functions as well.
What am I doing wrong?
Thanks!
Mac mini, macOS 14.2