Debouncing many switches used for MCU input via a shift register

Also consider multiplexing the buttons, it may make it a bit easier.