Updating the input manager, it now also implements iterator