I want a user to be able to open up a form with a key stroke and have the input element be focused and clear, so they can start typing immediately. As I have it written below, the form opens on the desired keystroke and the input is focused, but the input starts with the value from the key stroke in it (in my case, 'n'). I want the input to be clear.

```js
function openInputBox() {
    if (event.keyCode == 78) {
        $('#inputForm').show();   //the div with the input element in it
        document.getElementById("input_text").focus();
        document.getElementById("input_text").value = "";
    }
}

document.addEventListener('keydown', openInputBox, false);

```

My best guess is it has something to do with the asynchronous nature of the focus() method, but I haven't been able to figure it out. Any thoughts on what I'm doing wrong?