The move away from NATO/EU ambitions was unpopular domestically in Ukraine and led to Euromaidan, after which it turned out that NATO and co. weren't willing to back up their posture anymore.
You should listen to the talk by Mearsheimer, it's very instructive and interesting. There is a reason he is such a respected mind on geopolitics.