Fire “make first responder” earlier to avoid a crash when preference window close

Preference window crashes when user click "close" button. Moving "makeFirstResponder:" to windowShouldClose so that responder update happens before window gets released.