Add handleInput to the core