Macbook not detecting all USB keyboard keys I have a Macbook Pro 2019. I recently purchase the Corsair K68 RGB keyboard which has a common USB Type-A connector. I used OTG for USB A to USB C.
The first time mac detects the new device. Worked great.
When I disconnected and reconnected the keyboard it only detects keys from A-Z. Not even spacebar or num keys.
Tried going to keyboard settings &gt;&gt; Change Keyboard Type. It does not detect my keyboard.
It only starts to work again when I restarted my mac. Now every time if my keyboard unplugged accidentally, I have to restart my mac.
Is there any other way to do it without restarting macbook again and again everytime?
The problem appears to be that you're using an On-The-Go adapter.

USB OTG introduces the concept of a device performing both master and slave roles – whenever two USB devices are connected and one of them is a USB OTG device, they establish a communication link. The device controlling the link is called the master or host, while the other is called the slave or peripheral.

The OTG adapter is designed to allow your device to switch roles of being the host or peripheral; this is necessary to connect devices such as mobile phones to devices like flash drives and keyboards because your mobile device has to be both -  a host when you plug in a keyboard and a peripheral when you plug it into a computer.
There's no need for this swapping of roles when you plug things into your computer as it will always be the host and whatever you plug into it will always be the peripheral.  Even your phone won't be a host to a computer.  The computer will always see it as an external device; maybe a storage device or even a camera.
What you should be using is just a plain USB-C to USB-A adapter/converter - I like and have used Anker adapters due to their quality and warranty. (I have about a half dozen of these everywhere from my briefcase and my desk).  You don't need anything expensive, but make sure you get from a known brand (this is not the time to save a couple dollars).  When plugging in a sub $10 item into a $2,000+ computer, I tend err on the side of caution and go with reputable names.