Do you know how to read the input from a 4x4 keypad? If the answer is no, there are many threads here that cover that. Maybe, somebody else can find the right thread for you. You say that you are familiarized with the LCDOUT command. So, that part shouldn't be a problem. About saving the values to a variable, if you post the code that you have so far we can guide you in the right direction.