SFML -Tastaturereignisse CPP

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