Added input to events demo