Set a callback function to be called on button press.
This applies to the current active WindowProxy.
Callback function to be called on button press.