I'm so sorry Buddy isn't feeling like himself.
If he was scratching and shaking his head, he might have ear mites and/or an ear infection. Look in his ears for a blackish-brown substance that resembles coffee grounds--that indicates ear mite debris. If he has an ear infection, this affects his vestibular system, which regulates equilibrium and balance, that's why he's walking like he's drunk. Vestibular syndrome makes him feel dizzy, so he feels unsteady on his feet and he can also be feeling nauseated, like humans do, with motion sickness.
Call your vet and report that Buddy is walking like he's drunk and you suspect an ear infection causing vestibular syndrome. Here is more information:
If he has an ear infection, this will need to be treated with antibiotic or anti-fungal ear drops from the vet, to clear it up.
I hope all will be well with Buddy and please let me know how he's doing. Thanks!
Please be so kind as to rate my answer with positive feedback, as that is the only way I receive recognition from the website for my assistance. Thank you very much!
Providing a positive rating will not end our conversation, should you need me for any follow-up. Simply click 'Reply to Expert' for clarification or additional information, if needed.