Press control-F3 then use the arrow keys to highlight the window in the dock, then hit enter. If it doesn't work press control-F1 and then try what I said. You can also turn this on and off in the Keyboard & Mouse pref pane under "Keyboard Access". Its a lot easier to just click on it though.