let vector = i < 2 ? [0, delta * -dt] : [delta * dt, 0]; if (pressedKeys.has(key)) matrix.translateSelf(...vector);