The library HID.h is a part of AVR-core Arduino libraries, you don't need to install it directly, it should be installed with Arduino IDE.
The folder HID should be located in \hardware\arduino\avr\libraries\ in your IDE install dir.
I didnt use an arduino board that could be the problem. So I bought an arduino with ATmega32u4 then it works. i used the UART to communicate but I got stuck because it didnt communicate. The solution was to use Serial1 not Serial to recieve data from an other board.
Hello! just a little follow-up. After removing the IDE from my computer and reinstalling an older version of the old one, everything worked. hope this helps someone.