LCD Keypad Shield – Entering and Storing Numbers

What I mean is at present the number is "stored" and printed to Serial. What I would like to do is to have this number stored in a variable.

You mean like the variable called value?