added key-handler class