function Premuto()
{
if (event.keyCode==13)
{
FAI QUELLO CHE DEVI FARE
}
}


<input .... onkeydown="Premuto();")