This problem is caused by a service called CaptureService_102889
IF u restart this service, it stops working. idk why does this happen.
I hope this helps
Hope this link helps u figure out why this is happening. https://www.minitool.com/news/fix-windows-shift-s-not-working.html