Compiling example programs

I am having trouble compiling an example program - Keyboard serial.
Hereis the output of Verify/Copile.
C:\Users\mike\Downloads\arduino-1.8.7-windows\arduino-1.8.7\arduino-builder -dump-prefs
Compiling sketch...
"C:\Users\mike\Downloads\arduino-1.8.7-windows\arduino-1.8.7\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Users\mike\Downloads\arduino-1.8.7-windows\arduino-1.8.7\hardware\arduino\avr\cores\arduino" "-IC:\Users\mike\Downloads\arduino-1.8.7-windows\arduino-1.8.7\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\mike\Downloads\arduino-1.8.7-windows\arduino-1.8.7\libraries\Keyboard\src" "-IC:\Users\mike\Downloads\arduino-1.8.7-windows\arduino-1.8.7\hardware\arduino\avr\libraries\HID\src" "C:\Users\mike\AppData\Local\Temp\arduino_build_559309\sketch\KeyboardSerial.ino.cpp" -o "C:\Users\mike\AppData\Local\Temp\arduino_build_559309\sketch\KeyboardSerial.ino.cpp.o"
C:\Users\mike\Downloads\arduino-1.8.7-windows\arduino-1.8.7\examples\09.USB\Keyboard\KeyboardSerial\KeyboardSerial.ino: In function 'void setup()':

KeyboardSerial:28:3: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
Keyboard.begin();

^

C:\Users\mike\Downloads\arduino-1.8.7-windows\arduino-1.8.7\examples\09.USB\Keyboard\KeyboardSerial\KeyboardSerial.ino: In function 'void loop()':

KeyboardSerial:37:5: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
Keyboard.write(inChar + 1);

^

Using library Keyboard at version 1.0.2 in folder: C:\Users\mike\Downloads\arduino-1.8.7-windows\arduino-1.8.7\libraries\Keyboard
Using library HID at version 1.0 in folder: C:\Users\mike\Downloads\arduino-1.8.7-windows\arduino-1.8.7\hardware\arduino\avr\libraries\HID
exit status 1
'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?


Complains about not using the library but also displays that its using it?

Help.

-DARDUINO_AVR_NANOOops

It is a rather long way of saying that the Keyboard.h library and that example don't work on the Nano.

Read the comment at the top of the example to see the required hardware.