It works when running upwards, but not when running left right or downwards.
Develop games in your browser. Powerful, performant & highly capable.
Some of those Else are true so they overrule the button press. Pretty sure all you need here are the normal W A S D events and then one for UP is down which sets a higher speed? When UP is released, you can set the speed back to normal.