In ISR: fix debounce bug and filter for IR button press