function B_LEFT{
	if(GetVirtualKeyState(VK_LEFT)==KEY_PUSH || GetVirtualKeyState(VK_LEFT)==KEY_HOLD){return true;}else{return false;}
}

function B_RIGHT{
	if(GetVirtualKeyState(VK_RIGHT)==KEY_PUSH || GetVirtualKeyState(VK_RIGHT)==KEY_HOLD){return true;}else{return false;}
}

function B_UP{
	if(GetVirtualKeyState(VK_UP)==KEY_PUSH || GetVirtualKeyState(VK_UP)==KEY_HOLD){return true;}else{return false;}
}

function B_DOWN{
	if(GetVirtualKeyState(VK_DOWN)==KEY_PUSH || GetVirtualKeyState(VK_DOWN)==KEY_HOLD){return true;}else{return false;}
}

function B_SHOT{
	if(GetVirtualKeyState(VK_SHOT)==KEY_PUSH || GetVirtualKeyState(VK_SHOT)==KEY_HOLD){return true;}else{return false;}
}

function B_SPELL{
	if(GetVirtualKeyState(VK_SPELL)==KEY_PUSH || GetVirtualKeyState(VK_SPELL)==KEY_HOLD){return true;}else{return false;}
}

function B_SLOW{
	if(GetVirtualKeyState(VK_SLOWMOVE)==KEY_PUSH || GetVirtualKeyState(VK_SLOWMOVE)==KEY_HOLD){return true;}else{return false;}
}

function B_USER1{
	if(GetVirtualKeyState(VK_USER1)==KEY_PUSH || GetVirtualKeyState(VK_USER1)==KEY_HOLD){return true;}else{return false;}
}

function B_USER2{
	if(GetVirtualKeyState(VK_USER2)==KEY_PUSH || GetVirtualKeyState(VK_USER2)==KEY_HOLD){return true;}else{return false;}
}

function B_OK{
	if(GetVirtualKeyState(VK_OK)==KEY_PUSH){return true;}else{return false;}
}

function B_CANCEL{
	if(GetVirtualKeyState(VK_CANCEL)==KEY_PUSH){return true;}else{return false;}
}

function B_PAUSE{
	if(GetVirtualKeyState(VK_PAUSE)==KEY_PUSH){return true;}else{return false;}
}

function B_P_LEFT{
	if(GetVirtualKeyState(VK_LEFT)==KEY_PUSH){return true;}else{return false;}
}

function B_P_RIGHT{
	if(GetVirtualKeyState(VK_RIGHT)==KEY_PUSH){return true;}else{return false;}
}

function B_P_UP{
	if(GetVirtualKeyState(VK_UP)==KEY_PUSH){return true;}else{return false;}
}

function B_P_DOWN{
	if(GetVirtualKeyState(VK_DOWN)==KEY_PUSH){return true;}else{return false;}
}