multiple matrix keypads in sequence - help?

HI All,
Relative newbie - stuck trying to work out the following...
I'm building an escape-room puzzle and looking to have three different 4x4 matrix keypads accept a four digit code in sequence. I'm using a library for the keypad and a 7 bar 4 digit display. I've got base code for a single keypad puzzle (attached). How do I differentiate and sequence the three keypads in the code?
Any help appreciated...

PincodePuzzle.ino (4.9 KB)

If you have enough digital IO pins you could define 2 extra keypad objects with different sets of pins for the columns and rows. You would then poll each keypad in turn and take actions based on what you receive.

Depending on how the library works you may be able to re-use the pins for the columns or rows and save a few pins.