How to change the keyboard language (keyboard layout) from the operating system [Windows 10 si Mac]

How can we install a new keyboard language on Windows 10 si macOS? We find out how we can use more keyboard layout at the same time and how to change the layout of the keys on the keyboard.