Connect all keypad pins to Arduino digital pins. The exact pin order may differ between keypads, so check your keypad’s datasheet or just keep trying until you figure it out (that's what I did with ...