Implemented OnBecomeKey window event