Add the WASD keys to the "Do not pass" List. This way they'll only be working on the Active Window.