I am using Raspberry pi model B. I Connected one keyboard to it in usb2 port and I want to write in two pc whatever i am typing on keyboard. right now i tried for one pc. connected keyboard and OTG c pin port to pc. but my question, can i config one of usb ports so it can display on another pc what i type on keyboard simultaneously on both pc?
You can emulate low speed USB (1.x) over GPIO. You might need some circuitry for 5V 3.3V interfacing but it is doable. Here is an example of someone patching such a system into an esp https://github.com/cnlohr/espusb