If you tell a game warden you don't consent to a search and he threatens to break a window to gain entry and then you can hand him the keys but make it clear that you don't consent and the search is at his peril over your objection, handing the keys in that situation can't be construed as a valid consent. I'd never consent to a search of house, car or "what's in the pocket." A LEO can pat down for weapons for officer safety, but beyond that, no cigar unless you are actually under arrest. Of course there have been dishonest LEO's who will say there was a consent whether there was one or not. Unless there's a video or non-interested credible witness, I can predict who the judge is going to believe in a suppresion hearing in which there is no right to a jury.