Instructions to change the keyboard on Xiaomi devices

Xiaomi Redmi Note 4 Xiaomi Redmi Note 4
Xiaomi Redmi Note 4X Xiaomi Redmi Note 4X
Xiaomi Mi 5c Xiaomi Mi 5c
Xiaomi Mi Pad 3 Xiaomi Mi Pad 3
Xiaomi Mi 6 Xiaomi Mi 6
Xiaomi Redmi 4 (4X) Xiaomi Redmi 4 (4X)
Xiaomi Mi Max 2 Xiaomi Mi Max 2