Emulation d'un clavier pour une arduino mega - Keyboard emulation for an mega

Bonjour je voudrais créer une button box avec des switch on off des buttons avec une arduino mega, mais l’IDE m’indique une erreur:
‘Keyboard’ introuvable. Est-ce que votre croquis inclut la ligne ‘#include <Keyboard.h>’ ?
Comment la régler?
Merci par avance de votre réponse
Ce projet est très important, merci de me répondre au plus vite!!!

Hello I’d like to create a button box with switch on off buttons with an arduino mega, but the IDE tells me an error:
Keyboard not found. Does your sketch include the line ‘#include <Keyboard.h>’?
How do you set it?
Thank you in advance for your answer
This project is very important, thank you for answering me as soon as possible.

#include <Keyboard.h>

void setup() {
pinMode(22, INPUT_PULLUP);
Keyboard.begin();
}

void loop() {
if digitalRead(22 == HIGH)
Keyboard.print(ctrlKey);
delay(2000);
}
}

Keyboard is only available to certain boards (Leonardo, Micro…)
If you’re using a Uno or Mega you’re out of luck.

Ok, but isn't there any other way but to buy a leonardo or a micro!!!!

if digitalRead(22 == HIGH) That’s not going to work either.

Why that will not works?

It won’t compile.

So there is no solution?? I've to buy a leonardo