It had taken years of demonstrations and work in Congress to get the Civil Rights Act of '64 passed. Goldwater had opposed the bill on constitutional grounds because it was a carbon copy of the 1876 Civil Rights Act that had been struck down by the Supreme Court shortly after enactment. (Goldwater had a great understanding of American history.)
But, yes, race was the key issue of the 1964 presidential race.