Remove key.preventDefault() from the keydown event