To install the key filter, use the set environment key filter function, se_keyfilter():
se_keyfilter(funcp) int funcp; /* Pointer to key filter function */
This key filter is called whenever ki() is called, either directly or indirectly by another keyboard input function.