Changed an issue with the key vs. scanKeypad variable.  Added some comments for clarification.