pe::System: Replace CheckEvents() with PollEvent

This allows for custom handling of events by the user