isama ko na rin dito 'yung multiple button debounce routine ko. modified galing sa article ni Ganssle, inalis 'yung array.
/* put this code in a regular timer interval */
if (keyTestIndex < 25) /* 50ms on 2ms system tick interval */
{
keyTest &= keyPress;
keyTestIndex++;
}
else
{
keyStatus = ~keyTest;
keyTest = 0xff;
keyTestIndex = 0;
keyUpdate = 1;
}