Ghanaian leader Kwame Nkrumah's primary interests lay in Pan-Africanism and promoting the continent's freedom, independence and unity. He never had any intention of aligning himself with either the Eastern bloc or the West; rather, he sought to play them off against each other to the benefit of his own country.
Kwame Nkrumah was, above all else, a Pan-Africanist. From before the time he attained power in 1957 up until his death in 1972, Nkrumah's writings and speeches consistently promoted the cause of Pan-Africanism. Thus, although he was impressed by some aspects of the Soviet Union, Nkrumah's intention was always for Africa to control its own destiny rather than become a satellite of the either of the superpowers.
Nkrumah was greatly influenced by the Pan-Africanist George Padmore. As stated by Ahmad Rahman in The Regime Change of Kwame Nkrumah,
This Memorandum From the President's Special Assistant for National Security Affairs (Bundy) to President Kennedy, dated December 1, 1961, also says:
As further evidence of Nkrumah's intent not to align with either superpower, he was a key figure in the non-aligned movement (along with Tito, Nehru, Sukarno and Nasser), attending the Conference of Heads of State or Government of Non-Aligned Countries in 1961.
These views are shared by other experts on Ghanaian history, according to the article 'The Crown' Says One Dance Changed History. The Truth Isn't So Simple. This is not to say, though, the Queen's visit did not create a good impression; it clearly did, but to infer that it was pivotal in influencing Nkrumah's attitude towards the Soviet bloc has no basis in fact.
Nor can I find any evidence that the Prime Minster Harold Macmillan was 'shocked' by the Queen's dance with Nkrumah; this is hardly surprising as it was Macmillan's cabinet that had advised the Queen to carry out the visit in the first place. Also, the Duchess of Kent, as the Queen's representative, had danced with the Ghanaian leader in 1957.