Re wrote Lab2.c state machine. Now works properly.  Re wrote keypad.c and converted it to a state machine. Now properly gives only 1 keypress at a time. Keypad now fully done.