Hola, fredyh23! Bienvenido
![Adios](http://static.forosdelweb.com/fdwtheme/images/smilies/adios.gif)
A ver, prueba este codigo.
Código HTML:
<html>
<head>
<script>
var ultimaTeclaPulsada;
function comprobarTecla(e)
{
tecla=(document.all) ? e.keyCode : e.which;
if (ultimaTeclaPulsada==18 && (tecla==37 || tecla==39))
{
return false;
}
ultimaTeclaPulsada=tecla;
}
</script>
</head>
<body onKeyDown="return comprobarTecla(event)">
</body>
</html>