Rear Lens Cap Pentax K Replacement Cap For Pentax Lenses Protective Back Cover

To protect a lens, you simply place the cap over the rear lens mount and twist it gently until it locks into place. To remove it, you twist it in the opposite direction.

eBay