This is possibly not even the only way to achieve this effect
I'm familiar with it, and was planning to do a bit of revamping to the targeting selection that will indirectly resolve situations like this. Things like being able to re-target the same walls/space (which is not currently a thing but should be!).
Technically in keyboard mode the cursor is moving around, which also affects whatever you're "pointing at" on the map.