Added listener for COMMAND+W on mac.