create keyboard interrupt handler, create pic