handle input received in end-state