Mega 2560 R3 to button box

Can i use Arduino Mega 2560 R3 to make a button box like with Arduino leonardo?
Arduino Uno can't use library keyboard.h can this one use it?

No, you can't use a Mega. You need an Arduino with the Atmel 32U4 microprocessor.

...R