Événements de clavier SFML CPP

if (event.type == sf::Event::KeyPressed)
    if (event.key.code == sf::Keyboard::Escape)
        window.close();
Jealous Joey