In a basic HTML/Javascript game, when moving my character I want to adjust AI movement so their speed/position is relative to the character's, not the canvas. My code works fine but only for whichever key's function is listed last.In a basic HTML/Javascript game, when moving my