Help with keypadtest.pde listed in the Keypad Tutorial

/* Keypadtest.pde

  • Demonstrates the simplest use of the keypad library.
    */
    #include <Keypad.h>

const byte ROWS = 4; // 4 rows
const byte COLS = 3; // 3 columns
// Define the Keymap
char keys [ROWS][COLS] = {
{‘1’,‘2’,‘3’},
{‘4’,‘5’,‘6’},
{‘7’,‘8’,‘9’},
{’’,‘0’,’#’}
};
/
Connect keypad pin 2 (ROW0) to Arduino pin 9
7 (ROW1) pin 8
6 (ROW2) pin 7
4 (ROW3) pin 6
3 (COL0) pin 12
1 (COL1) pin 11
5 (COL2) pin 10
*/
byte rowPins[ROWS] = {9,8,7,6};
byte colPins[COLS] = {12,11,10};

// Create the keypad

Keypad kpd = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );

#define ledpin 13

void setup()

{
digitalWrite(ledpin, HIGH);
Serial.begin(9600);
}

void loop()
{
char key = kpd.getkey();
// During Verify the previous line produces the error " ‘CLASS KEYPAD’ HAS NO MEMBER NAMED ‘GETKEY’
// What is the remedy?

if(key) //Check for a valid key
{
switch (key)
{
case ‘*’:
digitalWrite(ledpin, LOW);
break;
case ‘#’:
digitalWrite(ledpin,HIGH);
break;
default:
Serial.println(key);
}
}
}

void loop()
{
  char key = kpd.getkey();

// During Verify the previous line produces the error " 'CLASS KEYPAD' HAS NO MEMBER NAMED 'GETKEY'
// What is the remedy?

When using the Arduino software you are actually using C, C++ which is case sensitive. The function you need is kdp.getKey() with a capital K which is different from kpd.getkey() which truly does not exist.

-Mark