Refactoring
add showKeyDiff function