debounce switch input