Input/InputEventsTask: "next" is used as the event data to switch to next TP

Fixes trac issue #3270.