In every application,
there is always written as [window makeKeyAndVisible];
What is mean by makeKey?
The key window is the window which will receive user interaction.
You might take a look at this:
http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/WinPanel/Concepts/ChangingMainKeyWindow.html