Macbook not detecting all USB keyboard keys
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.