From The National Park Service:
The battles of Cross Keys and Port Republic were the decisive victories of Maj. Gen. Thomas J. (Stonewall) Jackson's 1862 Valley Campaign. At Cross Keys, one of Jackson's divisions beat back the army of Maj. Gen. John C. Fremont approaching from Harrisonburg while elements of a second division held back the vanguard of Brig. Gen. James Shields' division advancing toward Port Republic on the Luray Road. During the night of 8-9 June, Jackson withdrew from in front of Gen. Fremont and at dawn attacked two of Shields's four brigades (commanded by Brig. Gen. E. B. Tyler), precipitating the battle of Port Republic. Fremont reached the vicinity too late to aid Tyler, who was badly beaten. With the retreat of both US armies, Jackson was freed to join the CS army commanded by General Robert E. Lee in the Seven Days' Battles against McClellan's army before Richmond.
In addition to it's importance in Jackson's overall strategy of defeating two separated armies in detail, Cross Keys provides interesting lessons at the tactical level. By deft maneuver and clever use of the terrain, Confederate Brig. Gen. Isaac Trimble shattered a larger US force and stalled Gen. Fremont's attack.