If the keys only work periodically or get stuck when depressed, there might be dirt or a sticky substance underneath them, preventing them from working properly. The keypad can be cleaned by removing the front case, and lifting away the thin keypad. This area must be cleaned carefully as it is right above the logic board and other liquid sensitive components.