You can click it and press command-W.
I haven't found any keyboard shortcut for closing it or moving focus to it though. If you set Preferences > Projects > Show command output to New window, you can close the window with command-W and move focus to it with command-`.