Pues es simple. Tienes que incluir el atributo
onKeypress.
<input type="button" onKeypress=" return ValidaSubir(event)" value="">
Y tu funcion seria:
Código:
function ValidaSubir(e)
{
tecla=(document.all) ? e.keyCode : e.which;
if(tecla==13) return;
forma=document.frmSubeLink;
//...
}