Solo rect is moving and change direction on keypress