NEED HELP to Program a Batching System

You haven't got any code to read the keypad.
I'm fairly sure there are examples provided with the keypad library.