Why does not CHROME recognize this?

<script type="text/javascript" language="javascript">
function convertquotetospace()
{ if (event.keyCode == 39) { event.keyCode = 94; } }
document.onkeypress = convertquotetospace;
</script>

In every other browser if a ' is entered it converts it to a ^

why .. or what else to do? I want it in the html

gollnick