Well, without the game I can't tell much, but unless there some explanation from a NPC of something around you, this kind of puzzle in H game is to get all the button down or up at the same time.
Best way to do that if you're not good at it is to map a map of what button change position when you hit one. Once that's down check your list to see how to get at the solution.