Yes, there is a trick to learning to play the piano.
Practice a piece of music in this way:
Take a section about 1/2 a page with a logical breaking point.
Practice left hand alone, that section, over and over. Gradually increase speed and expression.
Practice right hand alone, that section, over and over. Gradually increase speed and expression.
Practice both hands, that section, over and over. Gradually increase speed and expression.
Then, tackle the next section, same method.
I use a metronome to calibrate my speed increase and achieve perfect steadiness.
Then I have the piece down so well that I can let loose with maximum musicality.
I write down what I've done each day including metronome markings. Makes it easier to keep track.
This way of learning to play the piano also helps you memorize the piece.
Another tip is to NOT use the pedal as a crutch. Learn to play without the pedal. Then when you know the piece well you can add the pedal.
Learning a piece in this way will train your brain to perfectly coordinate and it will be a joy to play. It's a matter of discipline and patience. But it's fun.
Music connects pathways in the brain that help in other aspects of life. Music also helps math ability.