Restricting user interaction while a certain process is running

See

for some essays on the AI2 event model.