In this case, I think that default:
would be noise. It's obvious that this code makes no attempt to handle every possible keycode.
I suggest using a variant of @SirPython's suggestion to use a lookup table. It can be written in a way that reminds you of the keyboard layout.
var MOVEMENT = { /* W */ 87: { dy: -50 }, /* A */ 65: { dx: -50 }, /* D */ 68: { dx: +50 }, /* S */ 83: { dy: +50 },};function handleKeyDownEvent(event) { var movement; if (movement = MOVEMENT[event.keyCode]) { player.dx += (movement.dx || 0); player.dy += (movement.dy || 0); }}