Endpoint won't snap

You can also press left (green), up (blue) or right (red) arrow key to keep it parallel to the axes and then move it again. I used up key to move it parallel to blue axe.

I choose the end of the box in this occasion.