solve the bug with moving objects without pressing a mouse key