For me.. all the verses saying we aren't under the law anymore... are simply talking about
ceremonial laws. Confessing to priests, circimcision and animal sacrifice.
There are of course of a number of verses in the new testament that tell us to "keep the commandments". (it's not an option).
Matt 19:17; And He said to him, "Why are you asking Me about what is good? There is only One who is good; but if you wish to enter into life, keep the commandments."
John 14:15; "If you love Me, you will keep My commandments.
John 15:10; "If you keep My commandments, you will abide in My love; just as I have kept My Father's commandments and abide in His love.
1 Jn 2:3; By this we know that we have come to know Him, if we keep His commandments.
1 Jn 2:4; The one who says, "I have come to know Him," and does not keep His commandments, is a liar, and the truth is not in him;
1 Jn 3:22; and whatever we ask we receive from Him, because we keep His commandments and do the things that are pleasing in His sight.
1 Jn 5:3; For this is the love of God, that we keep His commandments; and His commandments are not burdensome.
Rev 12:17; So the dragon was enraged with the woman, and went off to make war with the rest of her children, who keep the commandments of God and hold to the testimony of Jesus.
Rev 14:12; Here is the perseverance of the saints who keep the commandments of God and their faith in Jesus.
Mark 7:9; He was also saying to them, "You are experts at setting aside the commandment of God in order to keep your tradition.
1 Tim; 6:13-14; I charge you in the presence of God, who gives life to all things, and of Christ Jesus, who testified the good confession before Pontius Pilate, that you keep the commandment without stain or reproach until the appearing of our Lord Jesus Christ,
Matt 5:19; "Whoever then annuls one of the least of these commandments, and teaches others to do the same, shall be called least in the kingdom of heaven; but whoever keeps and teaches them, he shall be called great in the kingdom of heaven.
John 14:21; "He who has My commandments and keeps them is the one who loves Me; and he who loves Me will be loved by My Father, and I will love him and will reveal Myself to him."
1 Cor 7:19; Circumcision is nothing, and uncircumcision is nothing, but what matters is the keeping of the commandments of God.
1 Jn 3:24; The one who keeps His commandments abides in Him, and He in him. We know by this that He abides in us, by the Spirit whom He has given us.
1 Jn 5:2; By this we know that we love the children of God, when we love God and observe His commandments
Also something to keep in mind... there is no verses in the Bible that says ...."you will be judged to see if your heart is in the right place".
But there a quite a few that say say we we will be judged by what we actually do.
Matt 16:27; "For the Son of Man is going to come in the glory of His Father with His angels, and WILL THEN REPAY EVERY MAN ACCORDING TO HIS DEEDS.
John 5:28-29; "Do not marvel at this; for an hour is coming, in which all who are in the tombs will hear His voice,
and will come forth; those who did the good deeds to a resurrection of life, those who committed the evil deeds to a resurrection of judgment.
Rom 2:5-6; But because of your stubbornness and unrepentant heart you are storing up wrath for yourself in the day of wrath and revelation of the righteous judgment of God, who WILL RENDER TO EACH PERSON ACCORDING TO HIS DEEDS:
2 Cor 5:10; For we must all appear before the judgment seat of Christ, so that each one may be recompensed for his deeds in the body, according to what he has done, whether good or bad.
Tit 1:16; They profess to know God, but by their deeds they deny Him, being detestable and disobedient and worthless for any good deed.
Rev 20:12; And I saw the dead, the great and the small, standing before the throne, and books were opened; and another book was opened, which is the book of life; and the dead were judged from the things which were written in the books, according to their deeds.
Rev 20:13; And the sea gave up the dead which were in it, and death and Hades gave up the dead which were in them; and they were judged, every one of them according to their deeds.
None of those verses mention "having a good heart". Are we even capable of knowing if we have a "good heart"?
Jer 17:9; The heart is deceitful above all things, and desperately wicked: who can know it?
Jas 2:14; What use is it, my brethren, if someone says he has faith but he has no works? Can that faith save him?