private static RadPopupContainerForm.KeyStates GetKeyState(Keys key)
        {
            RadPopupContainerForm.KeyStates keyStates = RadPopupContainerForm.KeyStates.None;
            short keyState = RadPopupContainerForm.GetKeyState((int)key);

            if (((int)keyState & 32768) == 32768)
            {
                keyStates |= RadPopupContainerForm.KeyStates.Down;
            }
            if (((int)keyState & 1) == 1)
            {
                keyStates |= RadPopupContainerForm.KeyStates.Toggled;
            }
            return(keyStates);
        }
 public static bool IsKeyDown(Keys key)
 {
     return(RadPopupContainerForm.KeyStates.Down == (RadPopupContainerForm.GetKeyState(key) & RadPopupContainerForm.KeyStates.Down));
 }