diff --git a/java/src/org/futo/inputmethod/latin/settings/SettingsValues.java b/java/src/org/futo/inputmethod/latin/settings/SettingsValues.java
index 8ffed5d84e56521211b34c83dcf2178b33d27bfc..c98150ccf34cac0ab39ba07f96712374feb1815c 100644
--- a/java/src/org/futo/inputmethod/latin/settings/SettingsValues.java
+++ b/java/src/org/futo/inputmethod/latin/settings/SettingsValues.java
@@ -29,6 +29,7 @@ import org.futo.inputmethod.compat.AppWorkaroundsUtils;
 import org.futo.inputmethod.latin.InputAttributes;
 import org.futo.inputmethod.latin.R;
 import org.futo.inputmethod.latin.uix.actions.ActionRegistry;
+import org.futo.inputmethod.latin.uix.actions.RegistryKt;
 import org.futo.inputmethod.latin.utils.AsyncResultHolder;
 import org.futo.inputmethod.latin.utils.ResourceUtils;
 import org.futo.inputmethod.latin.utils.TargetPackageInfoGetterTask;
@@ -147,7 +148,11 @@ public class SettingsValues {
         mIncludesOtherImesInLanguageSwitchList = Settings.ENABLE_SHOW_LANGUAGE_SWITCH_KEY_SETTINGS
                 ? prefs.getBoolean(Settings.PREF_INCLUDE_OTHER_IMES_IN_LANGUAGE_SWITCH_LIST, false)
                 : true /* forcibly */;
-        mActionKeyId = ActionRegistry.INSTANCE.actionStringIdToIdx(prefs.getString(Settings.PREF_ACTION_KEY_ID, ""));
+        mActionKeyId = ActionRegistry.INSTANCE.actionStringIdToIdx(
+                prefs.getString(
+                        Settings.PREF_ACTION_KEY_ID,
+                        RegistryKt.getDefaultActionKey()
+                ));
         mShowsActionKey = mActionKeyId != -1;
         mIsNumberRowEnabled = prefs.getBoolean(Settings.PREF_ENABLE_NUMBER_ROW, false);
         mUseContactsDict = prefs.getBoolean(Settings.PREF_KEY_USE_CONTACTS_DICT, true);
diff --git a/java/src/org/futo/inputmethod/latin/uix/actions/Registry.kt b/java/src/org/futo/inputmethod/latin/uix/actions/Registry.kt
index 8689d127285160a6b871a86d14fe4abb7254c181..52967675fb7f583f20c050301e3b7dac15bf4302 100644
--- a/java/src/org/futo/inputmethod/latin/uix/actions/Registry.kt
+++ b/java/src/org/futo/inputmethod/latin/uix/actions/Registry.kt
@@ -235,6 +235,10 @@ val DefaultActionSettings = mapOf(
     ActionCategory.Disabled to listOf(MemoryDebugAction, SystemVoiceInputAction)
 )
 
+val DefaultActionKey = DefaultActionSettings[ActionCategory.ActionKey]!!.firstOrNull()?.let {
+    ActionRegistry.actionToStringId(it)
+} ?: ""
+
 val ActionsSettings = SettingsKey(
     stringPreferencesKey("actions_settings_map"),
     DefaultActionSettings.flattenToActionEditorItems().ensureWellFormed().serializeActionEditorItemListToString()