What year truck are you talking about? It's impossible to lock your keys in these trucks.
My window has a metal hasp on it attached to the window frame, I have no idea what plastic piece you are referring to. One side of the window frame has a slot and the other side slides into that, so you can't even slide a thin object in between.