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

When I try to upload I get this error 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
but I already have this library.

I see in other forums that says I need to install TeeOnArdu from the board manager but I don't find this.

There is another way to fix this?

The best way to fix this is to buy a board that has native USB capabilities. Including:

If you have an Uno or Mega that uses the ATmega16U2 USB to serial adapter chip, it is possible to flash that chip with a custom firmware that will allow it to do keyboard emulation, but this is a very advanced project that has a chance of bricking your Arduino board. One option is this:

You'll find a lot of information at that link.

pert:
The best way to fix this is to buy a board that has native USB capabilities. Including:

If you have an Uno or Mega that uses the ATmega16U2 USB to serial adapter chip, it is possible to flash that chip with a custom firmware that will allow it to do keyboard emulation, but this is a very advanced project that has a chance of bricking your Arduino board. One option is this:
GitHub - NicoHood/HoodLoader2: 16u2 Bootloader to reprogram 16u2 + 328/2560 with Arduino IDE
You'll find a lot of information at that link.

but what I need to do with the file?

Which file are you referring to?

pert:
Which file are you referring to?

GitHub - NicoHood/HoodLoader2: 16u2 Bootloader to reprogram 16u2 + 328/2560 with Arduino IDE this.

I think I understand where to put the file but when I did it many other boards show and for the Uno board I was needed to use the HoodLoader2 Uno board and then when I compile I get this errors
"recipe.preproc.macros pattern is missing"
"Error compiling for board HoodLoader2 Uno."

And I locate the file in the hardware folder and I replace this file instad the folder arduino.
I did something wrong?

You sound new to Arduino.

Using something like HoodLoader (or similar tricks like UnoJoy) to make an Arduino Uno act as a keyboard/other HID device is an advanced procedure.

If you use a Leonardo or Micro, it will all "just work", because they have native USB, whereas those other boards require you to load special firmware onto the 16u2 on your Uno...

No more specific advice for you - because when I need to make an arduino pretend to be a keyboard, I use a micro instead of wasting my time faffing about with these sort of things! So I don't have the relevant experience (personally, I despise the boards with the 16u2 on them - my only "uno" boards are clones that don't have the 16u2 - and hence can't be made into keyboards/etc anyway. The 16u2 burns out if you look at it crosseyed, and the boards with them cost several times what the clones cost!)

If nano works so I will use nano

The classic Arduino Nano won't work. The new Arduino Nano 33 IoT will work.