Can you post a screenshot of your code and a better description of the problem? I would guess you're rotating your player relative to the wrong space. There are two options for making a rotation happen, one is world space and one is self space. Here's the page in the unity manual : https://docs.unity3d.com/ScriptReference/Space.html
I can help a little more if you post some screenshots and a better description of what you're trying to do, and what's actually happening. :)