Not at all. If she wanted to come back I’m sure the OP would have no issue handing her back her key but in a shared house (or even technically in any rental) situation you can’t just give someone else your rights. Ie, guy across the hall and random CL renters.
Almost forgot, to the OP. Keep the key.