support key or mouse control's move amount