Finish INPUT/InputDialog rework. Refactor doResume and its callers.