Hola turco_7!
Prueba asi:
Código HTML:
<html>
<head>
<script>
function esF12(e)
{
tecla=(document.all) ? e.keyCode : e.which;
if(tecla==123){
document.f1.submit();
}
return false;
}
</script>
</head>
<body onKeyDown="return esF12(event)">
</body>
</html>
Quizas haga falta agregar
return true; dentro del
if.
suerte