In windows 7, when you press alt tab you get a list of windows and can cycle through them effectively. Is there a way to close the window you are currently on instead of actually going to that window and pressing the "x" or alt f4.
Alt+tab to the window you need to close. Holding alt press "Enter", it will focus selected window, then press F4 on the same alt. The most programs support "Alt+F4" as a way for quiting them. Don't release alt and you'll can keep on alt+tabbing.
So, MacOS can command+(tab→q→tab→q→tab→q...)
In Win7 alt+(tab→enter→f4→tab→enter→f4→tab→enter→f4→...) works fine for me.
And don't forget, you can use arrows to navigate through alttab context menu.
For the Windows 10 users out there, while you could use the persistent menu, see anishpatel's answer, you can save your self a single key press with:
alt-tab to the app you want to close and press delete
- additionally, if you continue holding alt you can close multiple apps