user11384: The arduino due has 2 micro-usb ports that you can connect to two separate computers. I need to send different keyboard signals to each computer. How would I do this?

user368: 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.

user11086: While the Arduino Due has two separate USB ports, only one of them is a native port accessible to the processor. The second port is only usable for programming, and is connected to a different and much smaller chip that handles the programming task.
To connect to multiple computers from an Arduino Due, you have two options:

You can reprogram the second MCU to allow it to connect to the computer as a keyboard. This method is tricky because it requires an external programmer for it to work.
You can use a software USB implementation such as V-USB to use regular digital pins to connect to the computer. This is also tricky because it requires a little electronic know how a few extra components to make this work.

Both options require a little something else to make it work, so you will have to pick based on what you feel more comfortable doing.

11384: <p>The arduino due has 2 micro-usb ports that you can connect to two separate computers. I need to send different keyboard signals to each computer. How would I do this?</p>
 368: <p>For one of them, use <a href="https://www.arduino.cc/en/Reference/MouseKeyboard" rel="nofollow noreferrer"><code>Keyboard</code></a> as you normally would.</p>

<p>For the other, do whatever <a href="https://arduino.stackexchange.com/questions/991/can-the-2nd-mcu-on-the-uno-r3-be-used-for-keyboard-emulation">Can the 2nd MCU on the UNO R3 be used for keyboard emulation?</a> tells you to do to reprogram the ATmega16U2 connected to the other USB connector.</p>
 11086: <p>While the Arduino Due has two separate USB ports, only one of them is a native port accessible to the processor. The second port is only usable for programming, and is connected to a different and much smaller chip that handles the programming task.</p>

<p>To connect to multiple computers from an Arduino Due, you have two options:</p>

<ul>
<li>You can <a href="https://arduino.stackexchange.com/questions/991/can-the-2nd-mcu-on-the-uno-r3-be-used-for-keyboard-emulation">reprogram the second MCU</a> to allow it to connect to the computer as a keyboard. This method is tricky because it requires an external programmer for it to work.</li>
<li>You can use a software USB implementation such as <a href="https://www.obdev.at/products/vusb/index.html" rel="nofollow noreferrer">V-USB</a> to use regular digital pins to connect to the computer. This is also tricky because it requires a little electronic know how a few extra components to make this work.</li>
</ul>

<p>Both options require a little something else to make it work, so you will have to pick based on what you feel more comfortable doing.</p>
