Overview of Arduino Joystick Keyboard
with his help UKHelibob, I managed to make a matrix keyboard with multiple keys, the new question is, can leonardo be programmed both as a keyboard and as joysticks , and if so, how

JoystickButton - Creates a Joystick and maps pin 9 to button 0 of the joystick , pin 10 to button 1, pin 11 to button 2, and pin 12 to button 3. JoystickKeyboard - Creates a Joystick and a Keyboard .

ArduinoJoystickLibraryexamplesJoystickKeyboardJoystickKeyboard.ino ...
Additional Notes on Arduino Joystick Keyboard
Arduino analog keyboard and mouse gamepad joystick shield [7088] - US$4. For Arduino Joystick Keyboard, this point helps readers notice the most relevant visual details before moving into the gallery.
Arduino JoyStick Shield Game Expansion Board Analog Keyboard With Mouse. This note connects the source idea with the visuals in a simple, reader-friendly way.
How To Use Keyboard As Virtual Joystick at Donald Gaillard blog. The extra context helps the page feel more useful without forcing the same phrase repeatedly.
Looking at multiple sources also helps separate the main idea from small decorative details.
These notes are added so the page offers more than images and gives each visitor a clearer reason to keep reading.