I do appreciate the work done on this issue, but it is not quite right yet Apple-w still does not close a chat window, Ctrl-w does, and looking at the diff that seems to be what was coded in... http://www.jivesoftware.org/fisheye/changelog/svn-org?cs=6582
Incidentally, Apple-w (or Ctrl-w) does not close the main spark UI either which is something else that would need to be fixed to satisfy mac users.
Apple-W to close a chat tab/window.