Adding different types of events
Found a shitty IE bug with event input so added a hack