Unfortunately the order in which you must press the buttons is random. If you're struggling with this section, I recommend looking into the ending guide, as it explains how to solve the puzzle.
This part is also receiving a rework in the upcoming update, so hopefully players will have an easier time getting through it.