Maybe it's stargazing? I've read something about that kind of behavior. It's some sort of neurological disorder. If it continues I would definitely see a vet.