Added debouncing of input readings, to prevent false double clicks