Well, by all means lets not consider the context. This is the way God's UNtruth misleads and perverts God's word. "Keeping God's commands is what matters" refers to these particular rules Paul lays out concerning husbands and wives. He gives his personal opinion by permission, but not from the Lord, and others from the Lord.
1 Cor. 7:6-12 But I speak this by permission, and not of commandment. 7 For I would that all men were even as I myself. But every man hath his proper gift of God, one after this manner, and another after that. 8 I say therefore to the unmarried and widows, it is good for them if they abide even as I. 9 But if they cannot contain, let them marry: for it is better to marry than to burn. 10 And unto the married I command, yet not I, but the Lord, Let not the wife depart from her husband: 11 But and if she depart, let her remain unmarried or be reconciled to her husband: and let not the husband put away his wife. 12 But to the rest speak I, not the Lord: If any brother hath a wife that believeth not,
Paul uses the same example in all three of these verses. Note Faith, new creature, and then these commands.
Through faith we become new creatures which leads us to follow the Lord's will for us in our lives. This is not a list of rules as the workers put themselves under. It's why we have liberty in Christ Jesus.
Galatians 5:6 For in Jesus Christ neither circumcision availeth any thing, nor uncircumcision; but faith which worketh by love.
Galatians 6:15 For in Christ Jesus neither circumcision availeth any thing, nor uncircumcision, but a new creature.
1 Corinthians 7:19 Circumcision is nothing, and uncircumcision is nothing, but the keeping of the commandments of God.