Go to frame with key down

How would I tell a movie that if I’m holding down a key like f and left click on the clip gotoAndStop frame 10 or if im holding down key g and left click the movie clip gotoAndStop frame 20?