debouncing on the code

dont have any idea about filtering the input. maybe enlighten me more. :smiley: