갸웃거리다 means to tilt one's head sideways slightly as if trying to figure out something. It's often used to describe someone wondering about something.
-거리다 and -대다 describe certain actions or sounds being repeated.
For example, 허둥거리다 (madly rush about in a panic), 촐랑대다 (caper about frivolously).