Código:
function pulse(e)
{
var evt = e ? e : event;
var key = window.Event ? evt.which : evt.keyCode;
url=document.getElementById('url');
if(key==13) // tecla enter
{
location.href=url.value;
}
}
Código HTML:
<input name="url" type="text" class="especial" id="url" value="" size="60" onkeypress="pulse(event)">