Thanks for the reply's. It seems like it was attached to the keyboard so I will have to solder a new one in there to fully fix it. Doesn't look like I can just buy the plastic piece and glue it into place.
Long story short, my dog got his leg tangled in my midi keyboard's cord and it fell causing this small piece of plastic that holds the cord in snug to break. Does anyone know if I can find this plastic piece somewhere, or will I have to buy a whole new adapter? The pictures below show what it looks like attached and outside of the adapter.