I found the code but it is for darkbasic using the scancode command, so i'm not sure why it does that but i shall keep looking of an answere.
Scancode trouble
Blitz3D Forums/Blitz3D Programming/Scancode troubleThe forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.