The way that the key read works is by keeping a copy of how the key was 10mS ago. If it was not pressed previously and it is now pressed then we have a new keypress. Next time around the previous value is pressed and the new value is pressed and so it isn't a new keypress.
Did you try all the code. I haven't tried it but I think it should work.
The ICD2 will erase before programming. Is it erasing, there are diagnostics in the programming tab.
PICs can withstand thousands of reprogrammings, not likely you've worn it out.
Have you tried another PIC, does the ICD2 program it?
Hmm, when I received this kit, my colleagues had worked with it several months, even 1 year maybe? So worn out thingy seems normal. Me myself I had reprogrammed it around 80-100 times. Hmm, anything else to check. Now I can't find any MC around this office, ppl are not here yet (Software).
My logic says, I should make another cValue, (cValue2 for example). This is considered 1000 0000 or equal to =128. Then, shifting the bit backwards from 7 to 0 with the same cShift or shift interval of 1 bit.
If cShift reaches 8, the cValue2 now begins to execute with right shift.
But another problem is coming up, check whether I made mistake somewhere, thanks!