Here's a YT video illustrating reading multiple buttons with essentially one routine. The data for each button has an array address and the routine runs in a for() loop. The demonstration only uses two inputs but is easily expanded to any reasonable number. This obviates the need for separate debounce code for every switch.