add input event