Ignore pan keyboard event if the map is animating. Fixes #1710