Decreased power consumption and fixed debouncing