Don't use generic objects like MouseKeyboard multiple times. Go to layout 1, layout editor, select MouseKeyboard and in Properties/Common tick Global. Delete the second MouseKeyboard object on layout 2. That's it
(You worked with the object 'MouseKeyboard' in the 'Animations' event sheet, but the object on the second layout had the name 'MouseKeyboard2'. That in combination with the first MouseKeyboard object not being global caused the problem)