Adding a 1/4in. output & volume knob

Keypad matrix diagram

This is for a large 20 key keypad, but the theory works the same for smaller keypads. You can use an ohm meter to see which rows & columns get connected with each button press.