<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.26.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>419</ContextCount>
  <ElementCount>390</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>106</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>9</UnitCount>
  <MyReports>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>995200090 - Document - Document And Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document And Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>995200100 - Statement - CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/StatementConsolidatedBalanceSheets</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>995200105 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/StatementConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>995200200 - Statement - CONSOLIDATED STATEMENTS OF INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/StatementConsolidatedStatementsOfIncome</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF INCOME</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>995200300 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/StatementConsolidatedStatementsOfComprehensiveIncome</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>995200305 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/StatementConsolidatedStatementsOfComprehensiveIncomeParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>995200400 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/StatementConsolidatedStatementsOfChangesInStockholdersEquity</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>995200405 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/StatementConsolidatedStatementsOfChangesInStockholdersEquityParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>995200500 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/StatementConsolidatedStatementsOfCashFlows</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>995210101 - Disclosure - BASIS OF PRESENTATION, SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES AND SUBSEQUENT EVENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureBasisOfPresentationSummaryOfSignificantAccountingPoliciesAndSubsequentEvents</Role>
      <ShortName>BASIS OF PRESENTATION, SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES AND SUBSEQUENT EVENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>995210201 - Disclosure - RECENT ACCOUNTING STANDARDS UPDATES ("ASU")</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureRecentAccountingStandardsUpdatesasu</Role>
      <ShortName>RECENT ACCOUNTING STANDARDS UPDATES ("ASU")</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>995210301 - Disclosure - SECURITIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureSecurities</Role>
      <ShortName>SECURITIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>995210401 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureLoansAndAllowanceForCreditLosses</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>995210501 - Disclosure - DEPOSITS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureDeposits</Role>
      <ShortName>DEPOSITS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>995210601 - Disclosure - BORROWINGS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureBorrowings</Role>
      <ShortName>BORROWINGS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>995210701 - Disclosure - SUBORDINATED DEBT</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureSubordinatedDebt</Role>
      <ShortName>SUBORDINATED DEBT</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>995210801 - Disclosure - COMMITMENTS AND CONTINGENCIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureCommitmentsAndContingencies</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>995210901 - Disclosure - DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureDerivativeInstrumentsAndHedgingActivities</Role>
      <ShortName>DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>995211001 - Disclosure - FINANCIAL INSTRUMENTS WITH OFF-BALANCE SHEET RISK AND CONCENTRATIONS OF CREDIT RISK</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureFinancialInstrumentsWithOffBalanceSheetRiskAndConcentrationsOfCreditRisk</Role>
      <ShortName>FINANCIAL INSTRUMENTS WITH OFF-BALANCE SHEET RISK AND CONCENTRATIONS OF CREDIT RISK</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>995211101 - Disclosure - FAIR VALUE MEASUREMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureFairValueMeasurements</Role>
      <ShortName>FAIR VALUE MEASUREMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>995211201 - Disclosure - REVENUE RECOGNITION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureRevenueRecognition</Role>
      <ShortName>REVENUE RECOGNITION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>995211301 - Disclosure - EARNINGS PER SHARE</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureEarningsPerShare</Role>
      <ShortName>EARNINGS PER SHARE</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>995410 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/PvpDisclosure</Role>
      <ShortName>Pay vs Performance Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>99930303 - Disclosure - SECURITIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureSecuritiesTables</Role>
      <ShortName>SECURITIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.firstkeystonecorporation.com/role/DisclosureSecurities</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>99930403 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureLoansAndAllowanceForCreditLossesTables</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.firstkeystonecorporation.com/role/DisclosureLoansAndAllowanceForCreditLosses</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>99930503 - Disclosure - DEPOSITS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureDepositsTables</Role>
      <ShortName>DEPOSITS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.firstkeystonecorporation.com/role/DisclosureDeposits</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>99930603 - Disclosure - BORROWINGS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureBorrowingsTables</Role>
      <ShortName>BORROWINGS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.firstkeystonecorporation.com/role/DisclosureBorrowings</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>99930803 - Disclosure - COMMITMENTS AND CONTINGENCIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureCommitmentsAndContingenciesTables</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.firstkeystonecorporation.com/role/DisclosureCommitmentsAndContingencies</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>99930903 - Disclosure - DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureDerivativeInstrumentsAndHedgingActivitiesTables</Role>
      <ShortName>DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.firstkeystonecorporation.com/role/DisclosureDerivativeInstrumentsAndHedgingActivities</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>99931003 - Disclosure - FINANCIAL INSTRUMENTS WITH OFF-BALANCE SHEET RISK AND CONCENTRATIONS OF CREDIT RISK (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureFinancialInstrumentsWithOffBalanceSheetRiskAndConcentrationsOfCreditRiskTables</Role>
      <ShortName>FINANCIAL INSTRUMENTS WITH OFF-BALANCE SHEET RISK AND CONCENTRATIONS OF CREDIT RISK (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.firstkeystonecorporation.com/role/DisclosureFinancialInstrumentsWithOffBalanceSheetRiskAndConcentrationsOfCreditRisk</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>99931103 - Disclosure - FAIR VALUE MEASUREMENTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureFairValueMeasurementsTables</Role>
      <ShortName>FAIR VALUE MEASUREMENTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.firstkeystonecorporation.com/role/DisclosureFairValueMeasurements</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>99931303 - Disclosure - EARNINGS PER SHARE (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureEarningsPerShareTables</Role>
      <ShortName>EARNINGS PER SHARE (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.firstkeystonecorporation.com/role/DisclosureEarningsPerShare</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>99940301 - Disclosure - SECURITIES - Amortized cost, related estimated fair value, and unrealized gains and losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureSecuritiesAmortizedCostRelatedEstimatedFairValueAndUnrealizedGainsAndLossesDetails</Role>
      <ShortName>SECURITIES - Amortized cost, related estimated fair value, and unrealized gains and losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>99940302 - Disclosure - SECURITIES - Aging of amortized cost and estimated fair value of debt securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureSecuritiesAgingOfAmortizedCostAndEstimatedFairValueOfDebtSecuritiesDetails</Role>
      <ShortName>SECURITIES - Aging of amortized cost and estimated fair value of debt securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>99940303 - Disclosure - SECURITIES - Securities From Issuers In Excess Of Ten Percent Of Consolidated Stockholders' Equity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureSecuritiesSecuritiesFromIssuersInExcessOfTenPercentOfConsolidatedStockholdersEquityDetails</Role>
      <ShortName>SECURITIES - Securities From Issuers In Excess Of Ten Percent Of Consolidated Stockholders' Equity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>99940304 - Disclosure - SECURITIES - Continuous unrealized loss position (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureSecuritiesContinuousUnrealizedLossPositionDetails</Role>
      <ShortName>SECURITIES - Continuous unrealized loss position (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>99940305 - Disclosure - SECURITIES - Unrealized and realized gains (losses) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureSecuritiesUnrealizedAndRealizedGainsLossesDetails</Role>
      <ShortName>SECURITIES - Unrealized and realized gains (losses) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>99940306 - Disclosure - SECURITIES - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureSecuritiesAdditionalInformationDetails</Role>
      <ShortName>SECURITIES - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>99940401 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Outstanding loan balances by loan class prior to allocation of net deferred fees and costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureLoansAndAllowanceForCreditLossesOutstandingLoanBalancesByLoanClassPriorToAllocationOfNetDeferredFeesAndCostsDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Outstanding loan balances by loan class prior to allocation of net deferred fees and costs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>99940402 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Classes of loan portfolio summarized by risk rating and year of origination and year-to-date gross charge-offs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureLoansAndAllowanceForCreditLossesClassesOfLoanPortfolioSummarizedByRiskRatingAndYearOfOriginationAndYearToDateGrossChargeOffsDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Classes of loan portfolio summarized by risk rating and year of origination and year-to-date gross charge-offs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>99940403 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Activity in allowance for credit losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureLoansAndAllowanceForCreditLossesActivityInAllowanceForCreditLossesDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Activity in allowance for credit losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>99940404 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Activity in allowance for credit losses on unfunded commitments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureLoansAndAllowanceForCreditLossesActivityInAllowanceForCreditLossesOnUnfundedCommitmentsDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Activity in allowance for credit losses on unfunded commitments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>99940405 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - TDRs recorded investment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureLoansAndAllowanceForCreditLossesTdrsRecordedInvestmentDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - TDRs recorded investment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>99940406 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Loan modifications categorized as TDRs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureLoansAndAllowanceForCreditLossesLoanModificationsCategorizedAsTdrsDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Loan modifications categorized as TDRs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>99940407 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Types of loan modifications (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureLoansAndAllowanceForCreditLossesTypesOfLoanModificationsDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Types of loan modifications (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>99940408 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Non- Accrual Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureLoansAndAllowanceForCreditLossesNonAccrualLoansDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Non- Accrual Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>99940409 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Collateral dependent loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureLoansAndAllowanceForCreditLossesCollateralDependentLoansDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Collateral dependent loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>99940410 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Non-performing assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureLoansAndAllowanceForCreditLossesNonPerformingAssetsDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Non-performing assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>99940411 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Past due (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureLoansAndAllowanceForCreditLossesPastDueDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Past due (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>99940412 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>99940501 - Disclosure - DEPOSITS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureDepositsDetails</Role>
      <ShortName>DEPOSITS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.firstkeystonecorporation.com/role/DisclosureDepositsTables</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>99940502 - Disclosure - DEPOSITS - Maturities of time deposits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureDepositsMaturitiesOfTimeDepositsDetails</Role>
      <ShortName>DEPOSITS - Maturities of time deposits (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>99940601 - Disclosure - BORROWINGS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureBorrowingsDetails</Role>
      <ShortName>BORROWINGS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.firstkeystonecorporation.com/role/DisclosureBorrowingsTables</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>99940602 - Disclosure - BORROWINGS - Repurchase agreements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureBorrowingsRepurchaseAgreementsDetails</Role>
      <ShortName>BORROWINGS - Repurchase agreements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>99940603 - Disclosure - BORROWINGS - Remaining contractual maturity of repurchase agreements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureBorrowingsRemainingContractualMaturityOfRepurchaseAgreementsDetails</Role>
      <ShortName>BORROWINGS - Remaining contractual maturity of repurchase agreements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>99940604 - Disclosure - BORROWINGS - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureBorrowingsAdditionalInformationDetails</Role>
      <ShortName>BORROWINGS - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>99940701 - Disclosure - SUBORDINATED DEBT (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureSubordinatedDebtDetails</Role>
      <ShortName>SUBORDINATED DEBT (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.firstkeystonecorporation.com/role/DisclosureSubordinatedDebt</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>99940801 - Disclosure - COMMITMENTS AND CONTINGENCIES - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureCommitmentsAndContingenciesAdditionalInformationDetails</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>99940802 - Disclosure - COMMITMENTS AND CONTINGENCIES - Weighted average term and discount rates (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureCommitmentsAndContingenciesWeightedAverageTermAndDiscountRatesDetails</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES - Weighted average term and discount rates (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>99940803 - Disclosure - COMMITMENTS AND CONTINGENCIES - Maturity analysis of Operating and Finance lease liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureCommitmentsAndContingenciesMaturityAnalysisOfOperatingAndFinanceLeaseLiabilitiesDetails</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES - Maturity analysis of Operating and Finance lease liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>99940901 - Disclosure - DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - Narratives (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureDerivativeInstrumentsAndHedgingActivitiesNarrativesDetails</Role>
      <ShortName>DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - Narratives (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.firstkeystonecorporation.com/role/DisclosureDerivativeInstrumentsAndHedgingActivitiesTables</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>99940902 - Disclosure - DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - Net Fair Value of Derivative Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureDerivativeInstrumentsAndHedgingActivitiesNetFairValueOfDerivativeLiabilitiesDetails</Role>
      <ShortName>DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - Net Fair Value of Derivative Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>99940903 - Disclosure - DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - Master Netting Arrangements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureDerivativeInstrumentsAndHedgingActivitiesMasterNettingArrangementsDetails</Role>
      <ShortName>DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - Master Netting Arrangements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>99940904 - Disclosure - DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - Cumulative basis adjustment for fair value hedges (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureDerivativeInstrumentsAndHedgingActivitiesCumulativeBasisAdjustmentForFairValueHedgesDetails</Role>
      <ShortName>DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - Cumulative basis adjustment for fair value hedges (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>99940905 - Disclosure - DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - Cash Flow Hedges (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureDerivativeInstrumentsAndHedgingActivitiesCashFlowHedgesDetails</Role>
      <ShortName>DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - Cash Flow Hedges (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>99941001 - Disclosure - FINANCIAL INSTRUMENTS WITH OFF-BALANCE SHEET RISK AND CONCENTRATIONS OF CREDIT RISK (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureFinancialInstrumentsWithOffBalanceSheetRiskAndConcentrationsOfCreditRiskDetails</Role>
      <ShortName>FINANCIAL INSTRUMENTS WITH OFF-BALANCE SHEET RISK AND CONCENTRATIONS OF CREDIT RISK (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.firstkeystonecorporation.com/role/DisclosureFinancialInstrumentsWithOffBalanceSheetRiskAndConcentrationsOfCreditRiskTables</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>99941002 - Disclosure - FINANCIAL INSTRUMENTS WITH OFF-BALANCE SHEET RISK AND CONCENTRATIONS OF CREDIT RISK - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureFinancialInstrumentsWithOffBalanceSheetRiskAndConcentrationsOfCreditRiskAdditionalInformationDetails</Role>
      <ShortName>FINANCIAL INSTRUMENTS WITH OFF-BALANCE SHEET RISK AND CONCENTRATIONS OF CREDIT RISK - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>99941101 - Disclosure - FAIR VALUE MEASUREMENTS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureFairValueMeasurementsDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.firstkeystonecorporation.com/role/DisclosureFairValueMeasurementsTables</ParentRole>
      <Position>69</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>99941102 - Disclosure - FAIR VALUE MEASUREMENTS - Nonrecurring - Impaired loans measured at FV (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureFairValueMeasurementsNonrecurringImpairedLoansMeasuredAtFvDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS - Nonrecurring - Impaired loans measured at FV (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>99941103 - Disclosure - FAIR VALUE MEASUREMENTS - Quantitative information about Level 3 FV measurements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureFairValueMeasurementsQuantitativeInformationAboutLevel3FvMeasurementsDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS - Quantitative information about Level 3 FV measurements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>99941104 - Disclosure - FAIR VALUE MEASUREMENTS - FV of Financial instruments, Nonrecurring (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureFairValueMeasurementsFvOfFinancialInstrumentsNonrecurringDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS - FV of Financial instruments, Nonrecurring (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>99941201 - Disclosure - REVENUE RECOGNITION (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureRevenueRecognitionDetails</Role>
      <ShortName>REVENUE RECOGNITION (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.firstkeystonecorporation.com/role/DisclosureRevenueRecognition</ParentRole>
      <Position>73</Position>
    </Report>
    <Report instance="fkys-20260331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>99941301 - Disclosure - EARNINGS PER SHARE (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.firstkeystonecorporation.com/role/DisclosureEarningsPerShareDetails</Role>
      <ShortName>EARNINGS PER SHARE (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.firstkeystonecorporation.com/role/DisclosureEarningsPerShareTables</ParentRole>
      <Position>74</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>fkys-20260331.xsd</File>
    <File>fkys-20260331_cal.xml</File>
    <File>fkys-20260331_def.xml</File>
    <File>fkys-20260331_lab.xml</File>
    <File>fkys-20260331_pre.xml</File>
    <File doctype="10-Q" isDefinitelyFs="true" isUsgaap="true" original="fkys-20260331x10q.htm">fkys-20260331x10q.htm</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="1">http://fasb.org/srt/2025</BaseTaxonomy>
    <BaseTaxonomy items="1321">http://fasb.org/us-gaap/2025</BaseTaxonomy>
    <BaseTaxonomy items="26">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
    <BaseTaxonomy items="4">http://xbrl.sec.gov/ecd/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
