How to make a button to control the temperature?

hi, i wanna make two ‘up’ and ‘down’ button to control the number of temperature going up and down, and also moving to left and right .

anyone can tell me how to do it?
thanks a lot.