You read the keypad as many times as you need. Either a fixed number of times, or until a terminating character is entered. As keys are read, you store them, or add them together, in whatever way is appropriate. When you have a complete entry, act on it.