Criminal Law Questions? Ask a Criminal Lawyer.
It would have been except you consented to the search. I understand from your background why you did it, but you had the right to refuse the search and not give them the keys. Unfortunately, you waived that right so the search is good. Sorry. You should be able to have the charge dismissed or get a conditional discharge if it's your first arrest. The rest of your life factors will also help you.