Alarm clock project

My question is: how can I recive input from the keypad to set the alarm time?

Have you tried

char digit = keypad.getKey();

Maybe I didn't understand your problem.