Bug in Keypad library

I am not familiar with the waspmote IDE, so I can't say what else you have to do. My test was under the Arduino IDE.