save the key as a variable then tell the user to press the key for example for attack
as you can see each key has a specific value, store that value in your variable
std::cout << sf::Keyboard::Key::Up;
int userKeyUp = sf::Keyboard::Key::Up;
[/s]
its just I am not sure how to know which key pressed to take it to the variable
EDIT : check ahnonay post