Added Input events and Window events