That doesn't just not work, it doesn't compile. (Hint: there's no such thing as VK_ENTER. Use VK_RETURN.)
Remember, GetAsyncKeyState() gets the state of the keys at the time you call the function.
(Chances are you will be unable to release the Enter key fast enough for the program to print "you failed".)
Hope this helps.