I don’t see how shimming would reduce or stop the play and I don’t think you would want to ether as you may create more of a problem with the fix than what is the actual problem of the creak
so here you are looking at the front panel from a K7, you can see this ridge circled in red this slides into a track on the battery compartment you can see some wear in this area
Here you are looking at the front panel from the bottom and notice that ridge and you can also see wear.
Here we are looking at the battery compartment and that raised ridge on the front panel sides into the space
Looking into the battery compartment, you can also see what appears like felt padding on the outside area of the battery compartment this is probably there to stop any creaking
Here you can see how both the front panel and battery compartment slide together.
You can see how these slide together in the battery compartment, a person might consider using a small dab of lub where these 2 surfaces meet that might be the best fix something like a silicon based grease and I am just talking about a small amount and get into there with a toothpick. Don't use the location of the arrows as a guide as to were you should apply the lub
Edit
Here in red is where I would apply the lub
I would not be too to worked about some creaking as long as the front, bottom and top panels are tight to the underlying structures, far as I can see pentax has chosen not to securely attach these 2 components in this location.
I would also like to point out the screws that people are showing to tighten go into plastic and would apply caution to how much you tighten them.
Last edited by Ian Stuart Forsyth; 08-02-2018 at 09:27 PM.