Reading barcode scanner device

I try to get events from barcode scanner which basically read it as normal keyboad then end with enter, I use keypad descripe in documentation but not get.
When use the simulator in pc, sdl events in keyboard.c file was reading it .

I try to speed keyboard following some instruction there and the speed increase but only reading the three part of any barcode.

If there are any help to figure the solution to catch kepad or custom the keypad very apprecited.

Thank you.