Maybe I'm old fashioned, but I don't trust the electronic keypads like I do the good old-fashioned combination locks. Unfortunately those are virtually impossible to find these days. Did your friend's not come with a backup key? That seems more or less standard now and is the only way I'd buy one with electronics for fear of exactly the kind of issue you describe.