Nearly every barcode scanner I've run across is effectively a keyboard. I'd give it a try with one of the commonly available ones; worst case you can always return it.
Editor's take: One of the first upgrades I bought for my very first computer around the turn of the century was a Microsoft IntelliMouse Explorer. Its standout feature was IntelliEye, an optical ...