I am trying to map the functionality of arrow keys to `Alt+J`, `Alt+I`, `Alt+;`, and `Alt+K` using AutoHotkey. The idea is to enable cursor navigation within text without moving my hand from its resting position on the keyboard.
I am currently using the following script to achieve this:
This script works to an extent. When I press `Alt+J`, it moves the cursor to the left, as expected. However, when I hold down `Alt+J` to move the cursor further to the left, it moves a little, but it also types `j` letters into the text.
I have tried several solutions suggested by OpenAI's ChatGPT-4 model, but none have resolved the issue.
Would appreciate any advice or solutions that could help me fix this issue.
Thank you in advance.
[Mod edit: Moved topic to AHK v1 help, based on posted code.]