Added KeyHandlerTest.