Practiced capturing key and mouse events.