Add a debugging mode that reads data from the serial port instead of the keypad. Remove old hard-coded debug mode.