I've got a button with the onClick-event and a textfield with onKeyDown-event.
Button: onclick="myFunc(3)"
Textfield: onKeyDown="if(event.keyCode==13) myFunc(3);"
Somehow the button is getting called if I press the enter-key and I don't know why.