Usually dirt bikes with quick handling/steering will headshake during rapid decelleration over small bumps. Headshake that occurs as you increase speed may be a sign that something is loose or bent.
Was the bike ever crashed hard?
Was the bike ridden in an area where it would be likely to hit an obstacle with the front wheel?
Is the front rim new?
Are the handlebars original?
I would start with the wheel bearings and see if there is any play there. Then steering head bearings. Chances are that if something is bent is will probably be the axle, triple clamps or fork tubes.
The swingarm could be bent also.
Look at all these components carefully for signs of impact.
Take the front wheel off and roll the axle on a flat surface. Look at the forks and see if the look parallel.
Read this:
CHECKING THE FRONT END
The first thing is a quick preliminary check which consists of sighting along the plane in which the forks lie. Gauge one fork tube against the other by making sure they are parallel. If not, try loosening the bottom triple clamp bolts and front axle and, if applicable, any fork brace, and twisting the front wheel back and forth slightly. Bounce the front end up and down a few times (make sure the top triple clamp bolts are tight!) to center the wheel, then snug the bottom triple clamp bolts and and then the front axle. If the fork tubes are still not parallel, then either they are bent or the triple clamps are bent. To find out which one is at fault, disassemble the forks first and rotate the fork tube in either a lathe or on V-blocks using a dial indicator, or roll it on a flat surface. If the forks are straight, put them back into the triple clamps and, if the triple clamps are indeed bent, lying a flat plate across the fork tubes will immediately show this. Both fork tubes and triple clamps can be straighten if not bent too severely. However, as soon as any crease or chipping of the chrome is evident on the fork tubes they are history.
Chassis Alignment Basics
Also if everything checks out before you tighten down the front axle pinch bolts, snug them up first and bounce them up and down then with a helper have him/her hold the front brake on and compress the forks a little while doing the final torque down. This seems to help align the fork tubes to keep them from binding up during their stroke.