#include <Keypad.h>
#include <Keyboard.h>
const byte ROWS = 6;
const byte COLS = 6;
char hexaKeys[ROWS][COLS] = {
{'Y', 'U', 'I', 'O', 'P','t'},
{'6', '7', '8', '9', 'A',';'},
{'B', 'C', 'D', 'E', 'F',':'},
{'G', 'H', 'I', 'J', 'K','.'},
{'L', 'A', 'N', 'O', 'P','>'},
{'w', 'a', 's', 'e', 'd','z'}
};
byte rowPins[COLS] = {A5,A4,A3,A2,A1,A0};
byte colPins[ROWS] = {8,7,6,5,4,3};
Keypad customKeypad = Keypad(makeKeymap(hexaKeys), rowPins, colPins, ROWS, COLS);
void setup() {
Serial.begin(9600);
}
void loop() {
char customKey = customKeypad.getKey();
if (customKey){
Serial.print(customKey);
}
}