Using the switch statement

I assume you followed this tutorial:
http://www.arduino.cc/playground/Code/Keypad

As the tutorial says, the function getKey() returns the key that is pressed. Not a succession of keys.
If you expect someone to type 20, then you will have to call getKey() twice and check for for the sequence 2, then 0.