Hi Judy,
I am specialist teacher and frequently see what you are describing. I suggest your daughter is assessed for ADD (Attention Deficit Disorder). Children frequently 'zone out' and continually shake their leg or tap repeatedly.
Hope this helps!
Has she to your knowledge been bitten by a tick , any strange rash on her? They will have done blood tests for Lyme so what were the conclusions.?What anti biotic have they got her on ...