gfvalvo:
Are you using this library?
GitHub - ZulNs/MultitapKeypad: Arduino Library which allows to interface with matrix 4 x 3 phone's keypad as well as 4 x 4.If so, use the ‘attachFunction()’ method to attach a callback function. Your callback will be called on every loop in ‘getKey()’ while it’s waiting. If you need to bail out, your callback should set ‘MultitapKeypad::isCanceled = true’.
You are a legend. Thank so much for the help. It worked perfectly. Savede so much time and work