Vsync might not work in windowed mode, might be forcefully disabled by driver etc. while setFramerateLimit will surely limit the FPS to around 60 by sleeping. And without limiting framerate in one way or another your program runs as fast as it possibly can = 50% usage of CPU.
P.S. That event loop is slightly wrong usage of isKeyPressed.