The Apple End User Licence for Keynote relating to shapes images and graphics states the following:
F. Content and Digital Materials. Title and intellectual property rights in and to any content displayed by or accessed through the Apple Software belong to the respective content owner. Such content may be protected by copyright or other intellectual property laws and treaties, and may be subject to terms of use of the third party providing such content. Except as otherwise provided in this License, (i) this License does not grant you any rights to use such content nor does it guarantee that such content will continue to be available to you, and (ii) you may not use, extract or distribute, commercially or otherwise, on a standalone basis, any photographs, images, graphics, clipart, artwork or similar assets (“Digital Materials”) contained within, or provided as a part of, the Apple Software or Services (including but not limited to any Digital Materials contained within templates, themes or user guides and tutorials), or otherwise use the Digital Materials outside the context of its intended use as part of the Apple Software.
This means you can’t deconstruct Keynote software or extract graphics and images to be used outside of Keynote.
Creating a presentation using shapes, text or images contained in Keynote and then played in Keynote or printed from Keynote is within the terms of the Keynote licence.
The full EULA is obtained here: https://images.apple.com/legal/sla/docs/Keynote.pdf