Messages sent when keyboard key is pressed
Have you done any research about this? The microcontroller would be a USB device, enumerating has keyboard human interface device, and send messages based on this protocol.