Don't allow closing the keyboard preferences if there are duplicates.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>
Finished input customization support.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>