you can use the console.log(e.code) to print the output of the pressed key to know which value you need to replace with w s and so on
it recommended to use === for comparison as == compare 2 value despite if they of same type or not
for example a = “55” and b =55 is we use a==b it will be true even a is string and b is integer
document.addEventListener('keydown', event => {
if (event.keyCode === 87) {
y -= 10;
} else if (event.keyCode === 83 ) {
y += 10;
} else if (event.keyCode === 65) {
x -= 10;
} else if (event.keyCode === 68) {
x += 10;
} else {
x = x
}
drawCircle(x, y, size);
}
);