You are preprogrammed with certain behaviors, and then you learn others by experience, your actions are influenced by both. But it all boils down to the forces of nature causing you to do what you do, which is God that controls you.
How do you really choose in the ultimate sense if the elect are already predestined for Heaven?
Romans 8:28-30 And we know that all things work together for good to them that love God, to them who are the called according to his purpose. For whom he did foreknow, he also did predestinate to be conformed to the image of his Son, that he might be the firstborn among many brethren. Moreover whom he did predestinate, them he also called: and whom he called, them he also justified: and whom he justified, them he also glorified.
So then is it a choice that you do good, or a gift that God gives you to make you do good?
We have the illusion of it, but God has already decided who will follow Him and who will not. Do you really have free will if God decides you are going to follow Him, are you able to resist that with your will? Of course not, you are going to end up following Him one way or another, even if God causes you to be thrown into the sea and be swallowed up by a fish or something like that.
God provides the power for your mind so of course He knows how tweak that power to make it do what He wants. The result appears to be your own decision but it really isn’t, it’s God’s.
When you realize all this, that’s when you really start to know all you are and know is a gift from God.