CMD + H does not hide window for Mac

Hello, when I try to hide the window on my iMac, either I open the Code Editor or nothing happens. Pressing CMD + H does not hide the window even if I select the topbar where the close - hide - enlarge buttons sit.

Can I set my shortcuts to something else, or can I have CMD + H hide the window instead of opening the Code Editor?