It could possibly be some form of seizure, or even mild epilepsy. You need to have him checked out I think.
Can you video the event if it happens again? Obviously you might not get much warning but if you can, it would help the vet perhaps to see more clearly what's going on with him.