What loco are you talking about. Post the kuid number of the loco.
On jointrail's Amtrak P32-8BWH Ph V,<kuid2:45324:110017:1> if the loco is moving, press L to turn on head light then the B key will toggle the ditch lights between on and flashing.
Bob Weber