I had actually bought a flexible keyboard from the market and i had no idea that it had a USB socket to the output. I was using this USB keyboard for a couple of days and after using it for some time it was giving me trouble. Sometimes the keys did not function properly and sometimes it would automatically eject i.e disconnect from the computer port and again connect. I was having such problem and decided to find a solution for it.
After doing a bit of research i found out that most of the modern keyboards can be easily adapted to a PS/2 connector with ease. The only thing you need is just the USB socket and a PS/2 Jack (i got mine from an old mouse of mine). I also found out that when you buy a keyboard and if it is for the long run like in a Personal Computer, then it is better to have a PS/2 connector bought. Since the flaws for buying a USB keyboard are (i) It is gonna occupy one of the USB slots in your computer and hence there will be no space for USB when you are connecting multiple com ports. (ii)It is gonna use some kind of processor time since it has plugged into a USB. Very nice to have one more empty USB connector
Therefore my suggestion for you all if you are buying for a Personal Computer is to buy a PS/2 keyboard in place of USB. But again if you have already bought it then this instructables is gonna teach you how to accomplish the feat.