codice:
function captureEnter(e) {
	e=e||window.event;
	if (e.keyCode == 13) alert('Hai premuto INVIO!');
}
document.onkeydown = captureEnter;
ciao