Learning to play the piano is a never-ending road. There is so much to learn and discover, even for the best of the best in piano. There are certain factors that will help you to master to play the piano. The first is, how much you practice. Few hours a day would be a good start, like two hours. It helps you to develop to memorize the song that you play.
Quality of your teacher. Of course, we need a teacher to guide us and teach some advance techniques to memorize and how to aspire on playing music so well. And lasty, your dedication. As a beginner, you must be both determined and patient. Progress may be too slow for you at first, and you must need to trust your self that it is cumulative. Keep your self inspired by listening to some good music by great musicians and even go to concerts.