This would work this way: when you press the button it looks at the current temp, saves it and then it increases it while you hold the button, one degre each half a second (you can change the delay). When you release it it calculates what is the difference betewwn the previous and the now set temperature and proceeds with sending the ir code as many times as the difference in degrees was. The delay in the onRelease has to be adjusted for how much time the sending of the IR code takes. The IR command should be appended to the same button.
You can make a non blocking climbing of the IR also: