Excel on the web has different scripting features and functionality than the desktop version, called Office Scripts, and Power Automate integrations. It also has something called Action Recorder, which seems like a native built-in AutoHotKey type deal.
https://docs.microsoft.com/en-us/office/dev/scripts/overview...