Move InputProcessor to its own class.