The previous answers do work, of course. The problem is that sometimes maximizing the window isn't the same as having the window full-sized on your desktop.
There is an app on the Mac App Store called "Magnet" (https://apps.apple.com/at/app/magnet/id441258766?mt=12) which does this job perfectly and you can even customize the shortcuts.
I hope this helps!