Solved: Just add those 2 lines and it's gonna be fine.
while(PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
{
if(msg.message == WM_QUIT)
return FALSE;
if(msg.message == WM_SYSKEYDOWN && msg.wParam == VK_F10)
continue;
TranslateMessage(&msg);
DispatchMessage(&msg);
}