it seems this one is working apperiantly i've misplaced the @ with a ^
thanks clootie but yet again i have a problem how do i convert

...
if (diKeys[DIK_ESCAPE] & 0x80) DoSomething();
...