I have an `eventListener` on they `keyup` event of the key f for the whole document to perform a function `foo()`. 

Everything works perfectly until I have to edit a text field. In particular, when I type the key f, the function `foo()` is executed, which is undesirable when my purpose was to type in the text field.

Is there anyway that I can bypass this `eventListener` so that I can type normally on the text field?

This is my code:

```
document.addEventListener("keyup", function(event){
event.preventDefault();
    if (event.keyCode === 70){
        foo();
    }
});

function foo(){
    console.log("Howdy world");
}

```

```html
<input type="text">

```