Keyboard keeps reverting to U.S
Solution 1:
Select Keyboard you want.
Shut down your Mac.
Locate the following keys on the keyboard: Command (⌘), Option, P, and R. You will need to hold these keys down simultaneously Turn on the computer.
Press and hold the Command-Option-P-R keys before the gray screen appears. Hold the keys down until the computer restarts and you hear the startup sound for the second time.
Release the keys.
After resetting NVRAM or PRAM, you may need to reconfigure your settings for speaker volume, screen resolution, startup disk selection, and time zone information.
Solution 2:
If the prior recommendation did not work, consider the solution given by Brunni on https://superuser.com/questions/99172/how-to-stop-os-x-from-switching-input-method-keyboard-layout-automatically: You should put your custom KeyboardLayouts not in the User, but in the System Library folder.