Allow the user to specify the key type