How do I make a cube jump in unity 2022

Do you just need an animation or is this interactive?

If animation, just make an animation and be done with it.

3D movement: A Basic First Person Character Controller for prototyping

2.5D movement:

2D movement:

All source code linked in youtube comments.