Keyboard input

I have a problem with keyboard input, it’s that I can’t receive 2 input at a time. Up key and down key so that I can rotate x and y axis at a time.

Ex :

if ((keys[VK_UP]) && (keys[VK_DOWN]))
{
// your code here
}