Exactly this is why 4-way games should be controlled by 4-way sticks. In this case the diagonal is translated to both RIGHT and UP and probably the RIGHT is handled before the UP in the Donkey Kong software resulting in Mario passing the ladder. With a 4-way stick only RIGHT or UP can be selected at any given moment.