The library clearly says that Arduino Uno R3 is compatible with it here:
But I have had the same problem people with non compatible boards have also had and that is the compiler giving this message:
'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
I have to mention that I am relatively new in the area of programming and usually use electronic components to resolve problems, but here it sadly cant be done
That your Uno has a USB connector does not mean it's got the smarts to talk to a keyboard. That takes a different interface level, which only some Arduino products have. Unfortunately, this appears to be a grey area in the Arduino publicity, as this confusion is very common.
Interestingly, the page he linked to lists the Uno. Then, says:
Compatibility Note
Note: while the library is supposed to compile correctly on these architectures, it might require specific hardware features that may be available only on some boards.
It's not really relevant what it will compile on, if it won't work on some of those. A list of boards that it will work on would make a lot more sense.
If you go past that initial screen and read the actual documentation it seems pretty clear that Uno is not on the list.
Notes and Warnings
These core libraries allow the 32u4 and SAMD based boards (Leonardo, Esplora, Zero, Due and MKR Family) to appear as a native Mouse and/or Keyboard to a connected computer.