Fix a bug in key mapping for window movement.