Added support for adding an event to a named input