def getKeyFromKV(inputtext='',keylist=[],valuelist=[]):
    """Prompts the user to select a value from a list.
Returns the key enterred by the user that matches an
entry in a predefined key:value list.
(the key values are provided when defining the function call)
*inputtext defines the text preceding the user interaction
*keylist defines the values acceptable as a user response
*valuelist defines the values that correspond to the keys
## *note that the values in inputlist and returned value
should all be text strings
"""
    while 1:
        displaylist=[keylist[i]+'\t:\t'+valuelist[i]
                     for i in range(len(keylist))]
        outputtext=input(inputtext + '\n\t' + '\n\t'.join(displaylist) +
                     '\nPlease Select From The Listed Options:\n')
        if outputtext in keylist:
            return outputtext
        else: print('INVALID SELECTION')