I do not think you can. If you could connect keyboard events through the browser, that would be a huge security issue. You can capture keystrokes and send them to a web service in a few lines of code, which very easily spoils some lives.
You can detect the mouse event down using onmousedown, attaching it to the image in some way, and storing this alt text in a hidden field or cookie and DoSomething() from there.
Yatrix
source share