Where the file is: on Windows, paste %LOCALAPPDATA%\Tibia\packages\Tibia\conf into Explorer’s address bar and pick clientoptions.json. The file is read here, in your browser: nothing is uploaded, and only its hotkeys are looked at.
Changing a key: click a key on the card, then find the spell or item for it. Keys with a small S, C or A box also do something with Shift, Ctrl or Alt; those are shown under the keyboard. Data: TibiaWiki.