you can use:
Code:
if(Key.isDown(code:number)){
}
so for W u would use:
Code:
if(Key.isDown(87)){
}