Keyboard Interrupt

how to use keyboard interrupt in C? (like khbhit in DOS)