Try hitting Alt + F4 on your keyboard to force your Steam game to shut down if it has frozen and won't close. In the event that this doesn't work, you may manually stop the game's process by launching the Task Manager (Ctrl + Shift + Esc). You may also try restarting your computer to see if it fixes the problem.