I have not used Pic Basic so I can not help much but here is a "not very good idea" you might play with while you are working out the register reading Henrik is pointing you to.


Setup a BUT_CHECK routine with a RETURN at the end of it.
In each of the program loops have a GOSUB BUT_CHECK.
The BUT_CHECK routine will check if the button IS pressed and if it is increment a variable by one.
When the code returns to the program running the next line will have something like.
IF BUT_VAR = 2 GOTO PROG 2

Lots of problems with doing it this way but if things are not critical....
When you figure out the registers with Pic Basic you should see how bad of an idea this is.