It might help if you show us the form you're working with (e.g. attach it as a .txt since .html isn't allowed).
From what I gather, you want the browser to ignore the carriage return that most every barcode scanning software inserts and instead move onto the next field in the form? If so, something like this might work:
<script type="text/javascript">
function move(event, obj) {
var charCode = (event.which) ? event.which : event.keyCode;
if(charCode == 13) {
obj.focus();
return false;
}
}
</script>
Then, your form would look like this:
Test1: <input type="text" name="foo" onkeydown="return move(event, this.form.foo2)"><br>
Test2: <input type="text" name="foo2" onkeydown="return move(event, this.form.foo3)"><br>
Test3: <input type="text" name="foo3">
Note that I left off the onkeydown event for the last field; if you scanned a barcode in the last field, the carriage return should submit the form instead.