That worked for a long time, but after upgrading to DisplayFusion 11 it stopped working. I found out that this is due to releasing the 'Y'-Key too fast. Before version 11 the scripted function either started so fast that it catched the hotkey before releasing the 'Y'. Or the release of the key was not noticed fast enough so that it worked.
I have a workaround for now. But is there a better way to determine, if the scripted function was started by hotkey or by another trigger?