Hello.

Mr. Roger (flotulopex), I apologize once more.

If you didn't tested this yet, do so and you will discover that the "debounce" will prevent the code to jump from the MAIN loop directly to the Program2 label; just try...and see by yourself
No need to test it, you're absolutely right about that. I made a mistake taking piece of your code out of the content. My intention was to explain that debouncing should represent a protection against random noise, beside inadvertently key presses. I'm really sorry, I didn't eplained that adequately.

You're right, the colons are not necessary but this is just because I copy/paste the code instead of retyping it...
That's why I said that you accidentaly made a mistake.

Dragan77 seems to be looking for a simple program made of simple commands for simple functionality; I'm not sure his application needs "complexity" up to using LOOKUP and so on.
I beleive you're right about that as well. I put my example more as a probe to see if that's what mr. Dragan77 wants to achieve.