In 1 Jn. 2, keeping (τηρῶμεν) the commandments (v3) is a companion to keeping the Word (v4, λόγον). For John, there is no comfortable resting in committing sin because one has the Word. The Word and the Commandments are inseparable. Or as Luther said, "The Decalogue is eternal."