whirlpool microwave turntable turns on when door is opened

My 2 year old microwave stopped working today.The interior light stays on when door is shut,and when I open the door the turntable starts turning.When I shut door,light comes on,and turntable stops moving.When I push cook time and set time,it only beeps when I push the start button.Tried resetting,and unplugging it several times,but it still doesn’t work.Can my microwave be repaired,or is it cheaper to buy a new one.I have always had good luck with whirlpool appliances in the past,but after reading all the bad things on this,and other repair forum about whirlpool appliances,I wonder if it time to shop around.Thanks in advance for any advice,and or help on this problem.