how to get value from keypad of two parameters and store it in different charact

I think mostly a * or # is used to indicate that a value was entered. So prompt user for first value, let user type a value (keep in mind what PaulS said) and press the assigned 'enter' key and save. Prompt for the next value, go through the same process and done.