C:\Arduino\libraries\Keyboard\src/Keyboard.h:25:10: fatal error: HID.h: No such file or directory
Multiple libraries were found for "Keyboard.h" #include "HID.h"
Used: C:\Arduino\libraries\Keyboard
^~~~~~~
Not used: E:\Arduino\libraries\Keyboard
compilation terminated.
Using library Keyboard at version 1.0.2 in folder: C:\Arduino\libraries\Keyboard
exit status 1
Error compiling for board Raspberry Pi Pico.
Please, help. How to use HID for raspberry pi pico in Arduino IDE. Thanks!
OK. That is the official platform, but it's the version with all the boards. That will work just as well, but I recommend using instead the "Arduin Mbed OS RP2040 Boards" option just below it in the menu and uninstalling the "Arduino Mbed OS Boards" platform in Boards Manager. The reason is that the platform with all the boards was getting huge so it was split into individual "families" to make compilations and updates faster.
But that is not relevant to your question.
Sadly, the portability that has been the hallmark of Arduino for many years has not been given priority in the Mbed OS platforms. It is possible to use the HID capabilities, but you can't do that using the standard Arduino libraries. Instead you must learn to use new libraries without the help of proper documentation. You can get some hints about how to start on that effort here: