devi passare "event" per i browser che non usano l' oggetto window.event
codice:
onkeydown="captureEnter(event);"