Hold down a movement key. Hit the galactic map button. Release the movement key. Switch back out of galactic map.
The game acts as if you are still holding down the movement key.
Not a big deal (hitting the movement key again unsticks it), but a trifle disconcerting until you work it out.