Help!!!

I wrote a prog that calls the screensaver and was wondering is there was a way to run the program when the user presses the F12 key.

Is there some code I can write that when the prog is installed it can associate the F12 key with running the program????

Thanks

!!!Stumps!!!