Don't know how to make a sertain key do something specific

So I want to make a program that asks for a password and if you get it wrong it loops but there is no right password you have to press a key like F5 or some key I choose then have that to be the password how can I do that? I'm using dev c++ to make this. If you didn't understand what I put just tell me what part and I'll try my best to explain it better.
On a Microsoft web site, is a list of virtual key codes, shown in hex. Just have your program keep looping with the password request, until which-ever key you chose has been entered.

http://msdn.microsoft.com/en-us/library/ms927178.aspx
That's part of what I wanted but I need some code I don't need the loop or the password I just the the

if
{
Unknown
}

If it's even like that^^
Last edited on
@Vincent Dominguez

Well, what have you written in code, so far? We don't do peoples work for them, but are willing to help out.
Topic archived. No new replies allowed.