fix typedef `KeySet` redeclaration