Barcode vs keyboard input detection