Arduino: 1.8.8 (Linux), Board: "Arduino Nano, ATmega168"
/home/username/Arduino/simple_hid_test/simple_hid_test.ino: In function 'void setup()':
simple_hid_test:4:3: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
exit status 1
'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
I have no idea why it doesn't works!
I did also try: #inlude "Keyboard.h" instead of the <>...
The Keyboard library can only be used with Arduino boards with native USB capabilities, such as Leonardo, Micro, Due, Zero, and MKR. The Arduino Nano you're compiling for does not have native USB capability, thus the error.