MKL25Z4 demo for a keypad matrix interrupt and a UART interrupt. This demo uses a state machine to keep the flow of control easy to understand.