https://www.reddit.com/r/factorio/comme ... i_press_d/
I hope the video there explains it. Simply put
When inside a vehicle and a gate is to my right, pressing D opens the gate, although in a tank, pressing D while stationary does nothing. Same happens when a wall is on my left side, pressing A opens the gate, as if I was trying to walk through it. It also works with W and S, positioning yourself above and below a gate. Dunno if intended or what, but I'll report it incase it's not a feature.