scanner: trying a simple debounce algorithm