added KeyModifier class and JUnit tests in KeyModifierTest