reset input state on new stackframe