Interrupts are Assembler, not C, and they are hardware dependend, i. e. must be adapted to the specific CPU you are writing the program for. The program will likely not run on machines with different CPUs, even if they run the same OS. You really shouldn't do that unless there is a very good reason, and you're fine that the program will just run on your personal machine!
If you want an answer for C, there are mainly two functions you can use:
getch()
will wait for the next key press and return the corresponding keycode.
kbhit()
will merely check whether a key was hit.
You can find some more explanations and code examples for UNIX and Windows here :
http://stackoverflow.com/questions/448944/c-non-blocking-keyboard-input[
^]
There's also a discussion on programming a key-controlled game here:
http://www.cplusplus.com/forum/beginner/89434/[
^]. The code here includes C++ elements, but the relvant parts are C.