Hi there
I have encountered the same problem as you.
And I also have recently found the root of the problem here
It might be too late to answer you but I think that this might help others who encountered the same problem
Here is why that is happening:
It's true that it pressed the same button in the same tick in the targeted layout because the time used in "go to layout" is very little
I assumed this is the problem from mouse & keyboard being bugged
How to get this problem solved is:
add wait time before "go to layout" in the event you pressed the button
I have tried some numbers and found out that wait(100ms) is the best for this problem