Simple repeating keypress request

Hello,
I am quite new to the world of Applescript and I hope to write a few of my own soon. In the meantime I’m haveing a bit of trouble and was wondering if someone could give me an example to these guidelines for the script:

Have a repeating keypress for the key “F1”.
Does not require to be frontmost window but can be.
Repeats for a long duration of time (5-6 hrs).

Any help would be greatly appreciated.

if a script is all you want…


repeat
	tell application "System Events"
		key code 122
	end tell
	delay 60 --(1 min)
end repeat