Debouncing many switches used for MCU input via a shift register