   getting input in a login box
  hey i want to be able to make a login box for users to enter their username and password which i will use in a mysql database. the question i have is how do i check what the user presses on teh keyboard. the wat teh nehe tutorials does it is check if each individual key is pressed and i dont care about wat teh user presses except for teh enter key. i really dont want to use a really big if to check which key is pressed because that would be retarded...what is the way i should do this? are there any listeners i should be using? 
// in the wndProc(...) function you''ll see something like this:if(msg==WM_KEYDOWN){ if(wParam!=VK_RETURN){   //add the character or whatever }else{   //and VK_RETURN handling }; //and you might want to do: (depends on your needs) keys[wParam]=true;};  The WM_CHAR message has the processed key codesyou use it to check for return keys, back spaceetc.... 