GIGA R1 and Keyboard.h issue

Hello. I'm new to programming, and had been successful to use the #include <Keyboard.h> library with an Arduino Leonard. I bought an Arduino Giga R1 Wifi to try to do the same, but am getting an error. Can someone help me understand why this will not work? I looked under the Arduino website and it says that the Keyboard HID is available on the Giga R1. Does it mean that it will only work with a USB keyboard?

Code:
#include <Keyboard.h>

void setup() {
Keyboard.begin();
}

void loop() {
Keyboard.press('a');
}
  
Error:
WARNING: library Keyboard claims to run on avr, samd, sam architecture(s) and may be incompatible with your current board which runs on mbed_giga architecture(s).
C:\Users\RAZER\AppData\Local\Temp\.arduinoIDE-unsaved2024214-19588-17x8g0y.fozvh\sketch_mar14a\sketch_mar14a.ino: In function 'void setup()':
C:\Users\RAZER\AppData\Local\Temp\.arduinoIDE-unsaved2024214-19588-17x8g0y.fozvh\sketch_mar14a\sketch_mar14a.ino:4:1: error: 'Keyboard' was not declared in this scope
 Keyboard.begin();
 ^~~~~~~~
Multiple libraries were found for "Keyboard.h"
  Used: C:\Users\RAZER\Documents\Arduino\libraries\Keyboard
  Not used: C:\Users\RAZER\AppData\Local\Arduino15\libraries\Keyboard
exit status 1

Compilation error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?

Possibly a bug (or outstanding issue) in the core used for the Giga. Based on the schematic, I think it should be able to support it. Maybe somebody already solved it, else you can report it here: https://www.arduino.cc/en/contact-us/

PS:
Keyboard - Arduino Reference does not mention it the Giga but the reference is not always up-to-date.

Thanks for the reply. The Arduino Reference link does show the Giga R1 as being compatible. It's the third board from the bottom of the list. I'll reach out to the Contact Us, and see if they have any direction.

Maybe I was looking at a cached version of the reference page, sorry.

Are you using the latest version of the core (board package)?

Hi @f_arvizo. As the warning says, the "Keyboard" library is not compatible with the GIGA R1 WiFi board (or any of the other boards of the Mbed OS-based platforms:

https://github.com/arduino/ArduinoCore-mbed/issues/252#issuecomment-855968139

there's still a bit of incompatibility between this core and any PluggableUSB derived library, so plain old Keyboard and Mouse won't work.

Please provide a link to the page you are referring to.

Maybe it is this?:

https://docs.arduino.cc/tutorials/giga-r1-wifi/giga-usb/#keyboard

If so, you should read the tutorial carefully since it does not use the "Keyboard" library.