Barcode Scanner Input - Variable Length

I remember Perspective handles "Enter" a little differently from what one might expect, try \n:

But honestly it would be better if you can change the scanner to output a different suffix as per Phil, to avoid keyboard getting picked up as a scan.