KEY and SW state sending works
Implement UART receiver