The processor should never wait for anything. Check the keypad 20 times a second. You won't miss any input and you can do lots of other things between checks. See the Several things at a time tutorial.
1 Like