Devarim / Deuteronomy 5:12 · Drash
שָׁמוֹר אֶת־יוֹם הַשַׁבָּת לְקַדְּשׁוֹ כַּאֲשֶׁר צִוְּךָ יְהוָה אֱלֹהֶיךָ
Keep the Sabbath day, to make it holy, as the Eternal your Almighty commanded you.
Drash דְּרָשׁ
As one word
A person cannot say two words at once. The sages teach that "remember" and "keep" were said at once, and draw from it a law for all who keep Shabbat.
Rava in the Talmud: "remember" and "keep": whoever is bound to "keep" is bound to "remember". Women are bound to "keep" Shabbat, so they are bound to "remember" it too, that is, to sanctify the day. Midrash Aggadah: "remember" before Shabbat comes, "keep" once it has come. "Remember" was given to those at sea, "keep" to those on land. A person cannot say both words at once, but the Almighty can: "Once the Almighty spoke, twice have I heard".
How Talmud, Berakhot and Midrash Aggadah explain it
Talmud, Berakhot "Keep" (Devarim / Deuteronomy 5:12)
Rather, Rava said: the verse says "Remember" (Shemot / Exodus 20:8) and "keep". Whoever is bound to "keep" is bound to "remember". And these women, since they are bound to "keep", are bound to "remember".
Midrash Aggadah Keep the Sabbath day to make it holy
And there it says: "Remember" (Shemot / Exodus 20:8). Rather, remember it before it comes, and keep it once it has come. "Remember" was given to those who go down to the sea, "keep" was given to those who dwell on land. "Remember" and "keep" were said in one utterance, which flesh and blood cannot do, as it says: "Once the Almighty spoke, twice have I heard" (Tehillim / Psalms 62:12).
Takeaway
To "keep" Shabbat is to refrain from forbidden work on it. To "remember" is to sanctify the day in words: kiddush over wine.
Women are exempt from many commandments bound to a time. Rava shows why Shabbat is an exception.
In the old days one could not leave a ship on Shabbat at sea, so the midrash says: "remember" was given to the seafarer.