Hi, I created a plugin for PowerPoint; should be easy enough for Keynote. A short tutorial can be found here. In addition to that you would need to search for some Applescript that does the control.

Actually, I think the ability to create plugins is not highlighted enough; it really puts you in full control of every aspect of your mac.

Thomas