Born and raised on a farm in rural Illinois, Hickok went west at age 18 as a fugitive from justice, first working as a stagecoach driver, before he became a lawman in the frontier territories of Kansas and Nebraska .