Use buttons to change values

Tip: write a sketch which handles just one button and prints the text "button pressed" to the serial monitor.
That way you will see the need for button debouncing and can easily expand on that to solve your problem.