It's not easy to know where the error is because you haven't marked which line the error occurrs on or the whole code so I can test it.
Object expected errors usually mean you have made a reference error or mistyped something.
Btw, you have used double "s in the line from the form. This will most likely confuse the browser. I suggest you do it this way:
Also, you try to set the keyCode in the event object, I think this value is read-only (would make sense).