Please see the LCD Keypad Shield guide:
http://www.freetronics.com/pages/16x2-l ... tart-guide
it gives the analogRead values to expect when the buttons are pushed, and the complex example demonstrates how to have the sketch take actions when buttons are pressed.
However yes, fundamentally you need to read the value from analogue pin zero with analogRead and them make decision based on the value returned.