The tutorial key_func.c illustrates the use of keyloop, key filter and abort functions.
Chapter 55, "Operating Under PCDOS," gives more information about handling the Ctrl-Break key.