How can I prevent Keynote from storing files in iCloud?
Go to System Preferences > iCloud > iCloud Drive and click on the Options... button.

In the Documents section, uncheck the Keynote.app (and any other app you don't want) to stop it from saving in iCloud: