Vermont Views processing functions contain an event loop which handles reading and processing events. The event loop checks the event queue first, to see whether an event has been posted. If there are no events, the editor then checks the keyboard buffer to see if a key has been pressed. If no event is found, the event loop checks the event queue again, and continues checking the event queue and the keyboard buffer until there is an event to be processed.
You can write and install a keyloop function that will be called while the event loop is waiting for user input. You can also write and install a key filter function that is called after the event loop has retrieved a key event. For more information about keyloop and key filter functions, see Chapter 40, "Writing Keyloop, Key Filter, and Abort Functions."