Trouble with hardware debouncing