79483728

Date: 2025-03-04 12:44:12
Score: 2
Natty:
Report link

you can just dispatch a keyboard event, mapping key "a" to "<-"

if (e.key === "a") {
document.dispatchEvent(
  new KeyboardEvent("keydown", {
    keyCode: ARROWS.LEFT,
  })
);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: kre