i do a program that automatic press Tab and 1

But i do a 2 button

1st button is to Start the Program

and 2nd program to stop program??

any one can do when i press F12 the program will start

and when i press F9 the program will Stop?? THNX