Key Detection

Hello! I am currently working on a vertical shooter game. All works well for now, except that I want to detect the key press F, but not with if(Key.isDown(70)). I would use that, but to get this thing to work, this thing being the playing of an animation, you really have to carefully tap the key. I want it to run more like on(keyPress “<Space>”), but I don’t know how to do that with the F key.

onClipEvent (enterFrame) {
    if (Key.isDown(70)) {
        if (_root.gunOut == false) {
   = true;
            _root.gunOut = true;
        } else if (_root.gunOut == true) {
            _root.gunOut = false;
   = false;

Thanks for your help!