Create kb.c

keyboard interrupt and output file