Handling Keypad Buffer Overflows

The on_kp_overflow event will tell you that the input buffer of the keypad has been overwhelmed with frantic user input and the kp. object is now disabled. You respond appropriately:

Tibbo BASIC
Sub On_kp_overflow
      lcd.print("WHAT'S THE RUSH? SLOW DOWN!",0,0) 'tell the user
      kp.enabled=YES 're-enable the keypad; this also clears the internal FIFO of the keypad object
End Sub

There is also the kp.overflow read-only property. You can query it to check if the keypad is currently in the overflow state.