You don't say, but I assume it's the same GSM shield and the same Arduino connected in the same way in both instances?
When you have file1 uploaded and just the GSM shield attached, you say it works as expected. Suppose you then add the additional hardware but do not change the sketch - does it still work? If not, try the keypad without the screen and vice versa - which one is causing the problem?