This is what adjustment layers are for. Use a Curves layer and paint black or white in the layer mask to hide or reveal the adjustment. Just practice a little and you'll soon get the general idea.
If you have a RAW version of the photo, you can adjust the shadow and highlight contrast in Adobe Camera Raw. Later versions of PS also allows you to open jpgs and other file formats in ACR, so you can use these adjustments.