E2 help

i cant figure out hot to type a code for my e2 chip… it will bascily work for a Manual transmission, what im trying to do is when i click shift it outputs one and HOLDS 1… if i click it again if out puts 2 and holds 2… ect.
same with alt… but with alt i want it to go down, for instance if i click it, it out puts -1, click it again = - 2… ect.
sooooo help please :smiley: