HAHA!..My Pomeranian does that occasionally while sleeping with me...I think it's just to try to wake me or annoy me...and I say..."nanananana"...she stops. Her ears are fine, no ear mites and she gets Advantage every month, so no fleas.....so it's just a "random" scratch that we all have occasionally. Sometimes, she'll stop....then start playing with her toys on the bed...saying she isn't really "in the mood" to go to sleep....wants to play! And of course, I play with her awhile, then pat the pillow and say nite-nite...come on, Anita!...and she'll go right off to sleep.