I would suggest trying something like this:
let currentActive = document.activeElement;
if (e.key === "ArrowLeft") {
(currentActive.previousElementSibling as HTMLElement)?.focus();
}
Note that optional chaining is available since TypeScript 3.7