When mapping to an axis, center when both pressed.

Fixes #2860.
Merge pull request #2864 from unknownbrackets/keymap

When mapping to an axis, center when both pressed