Diet for updateInput()

The helper function forwardEvents() is also added and will serve for other
functions diet. The goal is eventually to simplify errors handling along the
whole chain of EventEmitters.