Use a boolean vector <keyVec> and resize it to 255.
On keyPress check whether keyVec[sf::keyboard:<keyPressed>] is true. If so, ignore the keypress and if not, set it to true.
On keyRelease set keyVec[sf::keyboard:<keyReleased>] to false.
Nexus' method is better though as that's simply using already built-in functionality/logic.