events.js handles input and animation update routing.  To hook into the events, call window.Events.add_listener(object)  Events will check if the object has any functions matching its events, and call the functions when events occur.