Novatech Robo Interview Question

write a code for keyapd in embedded C