Itead Arduino 1602 LCD with Keypad Shield

Greetings,

I bought the 1602 LCD + Keypad from itead: http://imall.itead.cc/itead-1602-lcd-shield.html

I used this code: http://linksprite.com/wiki/index.php5?title=16_X_2_LCD_Keypad_Shield_for_Arduino

When i ran the code, the LCD lights up, prints the two messages, but then when it’s in the key test mode, without pressing any key, it says “left key ok” and sometimes “down key ok”.

Will it have something to do with this part of code from LCDKeypad.h?

// you can change tresholds for detecting key presses
#define KEYPAD_TRESHOLD_NONE 1000
#define KEYPAD_TRESHOLD_RIGHT 50
#define KEYPAD_TRESHOLD_DOWN 380
#define KEYPAD_TRESHOLD_UP 195
#define KEYPAD_TRESHOLD_LEFT 555
#define KEYPAD_TRESHOLD_SELECT 790

Thank you,
Pedro Oliveira

Problem solved. Bad connection in A0.