Ukraine had physical possession of the nukes, but their ability to actually use them was highly suspect. They might have been able to circumvent the security measures given enough time, but if anything such an attempt would have sparked an international "peacekeeping operation" to make sure the nukes didn't fall into the wrong hands.
https://cisac.fsi.stanford.edu/news/budapest-memorandum-myth...