[keys] Implement command family in appendCommand()
[keys] Display key family in KeysViewer. + refactor.
[keys] Fix the case when two families come consecutively.
[keys] Fix the case where a family is the last entry of a type.
Merge branch 'new-keys-family' into new-keys