iKeyboardRemote, remotely control your iPad or iPhone from your Mac
MacUpdate
We can also turn off the screen, press the home button remotely, which allows us to exit the current application, for example. Another possibility is to put the iPad in “photo frame” mode from the application, or turn off the screen.

One possible use for it is to connect our device to a music chain and be able to control music playback while working in iMac, or to exit an application without having to get up, such as a video player program.
The program works quite well and is free.
Track>
More information>
Video