LCD Keypad Shield – Entering and Storing Numbers

I'm quite new to Arduino programming and have a similar problem with storing values.
I want the user to select a number from the LCD shield I have and then as they press SELECT the number is stored e.g Value = Machine Number, and then I could use it later on.
Is this possible?
Could someone help?
Thanks