How is engine speed controlled on a vehicle?

96 and new vehicles use air idle control valve, idle air control sensor, or something to the nature