Unlock a door using an F key

I have a door strike powered through an Elk M1 output.

I want to program an F key on the keypad to fire this output, but only if a code is first entered.

I tried checking the use code box on the F key assignment. But after the code is entered and the door unlocks, I don’t need a code to open a second time.

So what is a better way to to do this securely?

If you are already in the house i would figure you are secure. Just kind press F4 our double press it. The code is a bit redundant i think, but I’m not aware of your situation.