EDIT:
I have found this digikey paper : a deep dive into audio jack switches and configurations where switch concept is explain.
As specified in the comment it seems that I did not correctly understand the question (thank you @Glen Yates). Maybe another method can be inspired on the same principle of usage of a keypad.