void OnEnable() { if (!IsUnityWritingToPlist()) RefreshKeys(); //Make sure we never subscribe twice as OnEnable will be called more often then you think :) EditorApplication.playmodeStateChanged -= OnPlayModeStateChanged; EditorApplication.playmodeStateChanged += OnPlayModeStateChanged; } private void OnPlayModeStateChanged() { waitTillPlistHas