Leonardo Arcade controller

I am working on an arcade project and I am building an arcade controller with a leonardo. Every piece of code that I use I keep getting this message when I go to verify: ‘Keyboard’ not found. Does your sketch include the line ‘#include <Keyboard.h>’? Can’t seem to get around it. I am just an idiot ? Please help.

Post a full program that exhibits the error

I am just an idiot ?

Do you believe in psychics? Do you think we are all psychics? If so, perhaps you are an idiot!

What I'm saying is, how can we possibly help you with so little to go on?

Read the "please read" post at the top of the forum section (from around point 6 onwards, but in particular point 11).

Did you select the leonardo as the 'target' board somewhere in the tools menu?