Sorry.
#include <Keypad.h>
const byte ROWS = 7;
const byte COLS = 10;
char hexaKeys1[ROWS][COLS] = {
{'a', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0'},
{'b', 'h', 'm', 'A', 'B', 'C', 'D', 'E', '\0', '\0'},
{'c', 'i', 'n', 'F', 'G', 'H', 'I', 'J', '\0', '\0'},
{'d', 'j', 'o', 'K', 'L', 'M', 'N', 'O', 't', 'z'},
{'e', 'k', 'p', 'P', 'Q', 'R', 'S', 'T', 'v', '&'},
{'f', 'l', 'q', 'U', 'V', 'W', 'X', 'Y', 'x', '!'},
{'g', '\0', 'r', 'Z', '.', ',', '\\', '?', '\0', '\0'} //'g' is CONT. Keyboard.press() functions as if key were pressed and held. Keyboard.release() to turn off CONT??
};
char hexaKeys2[ROWS][COLS] = {
{'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0'},
{'\0', '\0', '\0', '1', '2', '3', '\0', '\0', '\0', '\0'},
{'\0', '\0', '\0', '4', '5', '6', '\0', '\0', '\0', '\0'},
{'\0', '\0', '\0', '7', '8', '9', '\0', '\0', 's', 'y'},
{'\0', '\0', '\0', '0', '\0', '\0', '\0', '\0', 'u', '
},
{'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', 'w', '\0'},
{'\0', '\0', '\0', '\0', '\0', '\0', '\0', '#', '\0', '\0'}
};
byte rowPins[ROWS] = {22, 24, 26, 28, 30, 32, 34}; //ROWS 1,2,3,4,5,6,7
byte colPins[COLS] = {36, 38, 40, 42, 44, 46, 48, 23, 25, 27}; //COLS 1,2,3,4,5,6,7,8,9,10
Keypad customKeypad = Keypad(makeKeymap(hexaKeys1), rowPins, colPins, ROWS, COLS);
void setup(){
Serial.begin(9600);
}
void loop(){
char customKey = customKeypad.getKey();
if (customKey){
Serial.println(customKey);
}
}