the script itself works. it's not a problem of the script.
I have the same problem when trying to assign a shortcut to a different application (e.g. xterm)

after assigning a shortcut and pressing it, instead of the desired application the "ALT-F2-window" comes up