add EnterWindow event, and give events names

This adds a name property to events, and also adds the EnterWindow event.