<html><head><script>function pulsar(e) { tecla=document.all ? e.keyCode : e.which; alert(tecla);}</script></head><body><input type="text" onkeyup="pulsar(event)" /></body></html>