writed a key listener and base key responsive class