How do I alt+f4 in OS X? I want to close focused window
Shift+⌘ Cmd+w does what you want in Safari and Chrome. I don't think it's a system-wide standard, though.

It works in Finder too so maybe it is a standard.

https://support.google.com/chrome/answer/157179?hl=en