improve the performance when moving multiple objects with arrow keys