there is a note with a poem on it on some dead body
that poem has clues about colors
when you reach the train controls, the buttons are different color
use poem to figure out what buttons to press and in what order
this walkthrough can help you too:
Silent Hill Downpour Train Codes Walkthrough