Enter function using keypad

Think these two steps through, a bit more carefully.

  if (key == '#') 
  {
    if (key == '1')

but for now, I just want the LCD to clear and display the letter 'a'.

No if statements are needed for that.