Flying on the Nimbus Cloud is one of Goku's signature abilities, and in most Dragon Ball games it's unlocked as part of the story or a specific character skill rather than a single button press.
If you're stuck on a particular title, the most reliable move is to check a guide for that exact game, since the method varies from one release to another. A quick search for your specific game will point you in the right direction.