ive seen this when the user is in an HTML object and presses a key
for accessibility, the whole extension is selected and the user presses a key. to simulate this, press tab when you are in Qlik Sense until the first visualization object is selected, press press arrow keys to navigate to your extension. then press ENTER. thats the key i want to capture.
so its not really a user pressing a key when in a text box.