rear hatch and glass lock

1998 GMC Jimmy. I don't know for sure what the problem is. Some time back the keyed switch on the rear window stopped working. The hatch could still
be opened as could the glass window but the key lock/unlock would not work.
Now the door locks seem to have a mind of their own. They will lock and unlock even when the vehicle is parked.
Any ideas what to look for?
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload
Don't have any good ideas about your key switch not functioning, but the Body Control Module, the Body Bussed Electrical Center, or the Remote Function Actuator (key fob signal receiver) are some of the places to look for what's causing the random locking/unlocking that you describe.

Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload
Bad switch or shorted wire causing it to act up.
--
Steve Williams
Pacifism - The theory that if they'd fed
  Click to see the full signature.
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload

Motorsforum.com is a website by car enthusiasts for car enthusiasts. It is not affiliated with any of the car or spare part manufacturers or car dealers discussed here. All logos and trade names are the property of their respective owners.