How to send keyboard signals to two separate computers (arduino due)
For one of them, use Keyboard as you normally would.

For the other, do whatever Can the 2nd MCU on the UNO R3 be used for keyboard emulation? tells you to do to reprogram the ATmega16U2 connected to the other USB connector.