Question about momentary switch

Hi guys
I have a 3 position momentary switch in my car,and what i want is use that switch to control the Launch Engine Speed Aim table,so is like every time flip the switch up and the Launch Engine Speed Aim table goes up one number. And Down just like how Up works.
However I do create the code and load in to the ECU. But turn out as soon as I flip the switch the number just go to the maximum.
Please help with this, what I should do to make this function to work just like PDM Counter function, the number just increase one number at a time.
Thanks a lot!
I have a 3 position momentary switch in my car,and what i want is use that switch to control the Launch Engine Speed Aim table,so is like every time flip the switch up and the Launch Engine Speed Aim table goes up one number. And Down just like how Up works.
However I do create the code and load in to the ECU. But turn out as soon as I flip the switch the number just go to the maximum.
Please help with this, what I should do to make this function to work just like PDM Counter function, the number just increase one number at a time.
Thanks a lot!