Вариант отмены enter в поле test1 ...
<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
<script type="text/javascript">
$(function () {
$('input[name="test1"]').keypress(function (event) {
if (event.which == '13') {
event.preventDefault();
alert("Enter");
}
})
});
</script>
</head>
<body>
<form name="form" action="http://">
<input name="test1" />
<input type="submit" name="" value="Ok" />
</form>
</body>
</html>