By using UART communication the Raspberry Pi that will have the keyboard plugged into it will log the keystrokes and pass them in ASCII too the Arduino Pro Micro which will convert these back into characters and pass them to the computer it is plugged into as keystokes.