When I move an object using the arrow keys it lags for a bit some times, e.g. if the object was moving left for a few sec and I click down arrow key, it will move the dirrectionOffset in a downard position once (move down by 3 px in this case), then lag for a while and then continue moving down ( 3px each time).