some ways to make a spaceship moves with keycode in a game (Javascript)