How To Check If User Input Is From Barcode Scanner Or Keyboard Javascript