Selectivity filter contains for carbonyl oxygen atoms which can bind with K+ to remove the water of hydration, allowing the smaller, dehydrated K+ to pass through. Na cannot pass as it is unable to form enough bonds with the oxygen to remove all of the water, therefore too large.