MIL coming in using spare key

Me and my MIL have A very Syrian relationship. The woman just doesn’t like it care for me. Anywho, about a year ago in an attempt to get my MIL to I guess like me and show a sign of respect imo I copied a key to me and my husbands home and have it to her as a way of saying she’s always welcomed to come over. We have a 1 year old BTW. Anywho, she doesn’t come around much to see the baby because she states she busy but the last time she came over, she called and rang the doorbell. My husband was asleep and then she used the key to get inside and saw my husband asleep in the living room with out baby (we sleep separate whenever one of use have to go to work .. we work overnight so when one of use comes home, we can sleep after working 12 hours) anywho, I was asleep in the room. It kinda of bothered me they she used it last time but I shrugged it off and told my husband that next time when she comes make sure he is up so that she can contact him and to tell her they next time tell her to knock and what not. You know like both should plan so that they’re awake. Mind you, my parents have a key to our house but they’d never just open the door and come in my mom and dad says unless there is some sort of emergency then they’ll use it. Anywho, yesterday my MIL came over. My husband knew she was coming at 10am. Well my husband was asleep again and my MIL called him, no answer & she said she used the ring door camera and of course no answer (I was in a deep sleep on the room I had a long night at work) and my husband told me she came in and saw him and our daughter asleep in the living room in the bed out there and surprised him and the baby awake. I told my husband that if he talked to her about coming in last time? My husband said he did but i feel like he lied because if so then she wouldn’t have done it again.. anywho I never say anything to my MIL.. even when she’s rude and out of line. I’ve respected her and I just don’t talk back or say anything I go through my husband because she’s kinda crazy and bi polar and mean and would take even the slightest thing personal. Well I finally.. after 8 year told my MIL is she cna please knock and call and coordinate better when she wants to come over and to not use the key to come in on her own. She said that she will and that she didn’t call and ring the door bell. And I said ok thank you. I thought all was well but NOPE.. she called my husband and got mad and yelled at him and was in her feelings.. and my husband called me at work and got mad at me as well… now I feel bad for setting boundaries.. was i in the wrong???