Prompt using hashtable and return result value when key is selected