New feature : reset the debounce

It seems a little crappy to add a function into a function, but it provides a feature that was asked in #952 without breaking backward compatibility.