Finished event loops and mouse events.
Updated with keyboard events section.