Use -[UIApplication keyWindow] instead of delegate window

`UIApplicationDelegate` protocol doesn't have a window method, it's common convention that it has a property called window. However it is not enforced.