I think he is Buster Keaton, but I'm not sure.
Accidentaly he seat in a small railroad vehicle to lunch, and it begans to travel across the country until the pacĂfic, where he simply as he comes, he get back to the beguining point.
I search in the Keaton bibliography and find nothing, but I am almost sure that is a classic Keaton film.