A system and method of optimally controlling ignition timings in an engine conditioned in first and second modes of intake control. A \u201cpiano\u201d-style MEMs device includes an elongated platform pivotally mounted proximate the middle thereof by a torsional hinge. The first set of electrical contacts is at the first end and the second set of electrical contacts is at the second end. Each level stores pairs of a key value and a pointer value.