Arduino HID (From Argentina)

Spend some time with the example sketch File > Examples > 02.Digital > BlinkWithoutDelay and the associated tutorial:

Then you only need to modify the technique you learned to type instead of blink.