Minor improvements would include giving the variables a and x meaningful names and using the smallest applicable data types for variables such as LCD_COLS and LCD_ROWS which are less than 255. The keys, rowPins and colPins arrays could be made const
Minor improvements would include giving the variables a and x meaningful names and using the smallest applicable data types for variables such as LCD_COLS and LCD_ROWS which are less than 255. The keys, rowPins and colPins arrays could be made const