Now properly sending mouse, key, and wheel events.