k up a key in the environment, with fallback to secondary keys
  and finally falling back to a default value.)