You can pick a custom keyboard shortcut, and you can decide to simply press that shortcut instead of pressing and holding it.
And you can do this without having to write computer code in a language like Python. Instead, you only need spreadsheet formulas as simple as: =claudeExtract("sentiment of positive, negative, or ...