If you want to connect two objects with a line, use a “connection line” that automatically adjusts its length and angle when you move the shape on either end.
To connect two objects with a connection line:
You can also make a connection line curved and change its colour, thickness, and other attributes. To learn more, search Keynote Help for “connection line.”