So I am working on an medical machine which runs on microcontroller(So,No OS).It gets the input from ps/2 keyboard. I would like to automate it. I would like some basic idea and some help on how to do it. I tried connecting the gpio pins directly to the ps/2 port and have damaged the pi. So any precautions on how to proceed would be great.