Keyboard does not work after disconnecting and reconnecting

I have a problem with me pc where when I disconnect my keyboard and reconnect it, it will not type. This can happen ranging from 1-3 disconnection.
The rgb on my keyboard is working upon reconnection and the keyboard works perfectly in the bios no matter how many times I disconnect it so I’m assuming it is windows.

I have:
CPU: AMD Ryzen 7 7700x 8-core
GPU: RTX 4070
Motherboard: PRO B650-p WiFi
Windows 11 24H2 x64-bit
Keyboard: IQUNIX EZ63
I used to be able to switch between different keyboards without a problem with the same set up but about 2 month ago, this problem randomly decided to take place.
I have tried with multiple keyboards including a Bluetooth one but was unsuccessful.
I have also tried multiple commands, reinstalled keyboard driver from device manager, but nothing seemed to work.
I have changed legacy USB support off and XHCI handoff on but didn’t fix. (My bios did not have PS/2 Simulator)

The only thing that will fix the issue is if I restart my pc where if I disconnect again, it will not type again.