put in a timer *before* ya main loop
else nothing gets updated until an event is caused, such as dragging the window.
createtimer(5) repeat ...stuff until keyydown(1)
else nothing gets updated until an event is caused, such as dragging the window.