Added hardware buttons debouncing