Nope. Not working. I have attached the modified script for you to see.
Shift key - makes a smart object & attempts to align layers
Ctrl key - loads layers but no smart object & no attempt to align
No keys - no smart object & attempts to align
Cntrl & Shift - makes smart object & does Not attempt to align
loll I had to read wrongly your yestarday post or something made me to change my mind regarding correct behaviour as to the use of Control key. The ! character is not needed! 😛
When Shift and Ctrl are used the layers neither will be aligned nor smart object created.
When Control is used, you'll have aligned layers, when Shift, then Smart Object Created.
EDIT: I read that post and found what confused me. You said something that already worked right way. So I thought if you say it doesn't work as intended I did something wrong. Now we see I didn't, just see what you said: "I tried holding it (ie. Control) & it gave a non-aligned".