Code:
if(CH_SPEED==1)
{
if(GetAsyncKeyState(VK_F10))
{
*(float*)ADR_SPEED = 99; //normal speed
}
else
{
*(float*)ADR_SPEED = 9999; //normal speed
}
~Thats only an example hope I can help
Note: ADR_SPEED code is NOT correct (Just find it the correct one)