When the hash (#) is pressed, write a null character ('\0') to the next position in the keys[] array. Then you can print it as...
Serial.print(keys); //print the characters in keys[] up to the null
When the hash (#) is pressed, write a null character ('\0') to the next position in the keys[] array. Then you can print it as...
Serial.print(keys); //print the characters in keys[] up to the null