Star gazing is a neurological issue typically the animal will also have weird wobbles and other motor control issues going along with it. My guess is if you are asking and not sure it isn't likely to be star gazing it is dramatic. Can you post some photos? Have you used any pesticides or paint products recently toxic shock syndrome can cause stargazing (basically it is a brain infection a symptom not a disorder in itself.
A video of stargazing caused by IBD. It is very sad and disturbing so be warned! It is also what stargazing looks like it is unmistakable.
http://youtu.be/F9qkxu91Uns
I hope that what you have is a silly snake and not something larger. If you are still unsure after seeing the video it is time for the vet! If it seems to be silly snake syndrome (I made that up) check your husbandry carefully, it could be a environmental response.
Alex