OpenGL/SDL Event Problem

Both the OpenGL demos and my own programs exibit a problem where user
input is delayed by about 5 seconds. Try compiling and running morph3d,
any keypress takes about five seconds to display. Any ideas why this is
happening/how to fix it?