I am writing a game using jQuery. It is required to bind a function, for each element of the set (in my case - table cells), activated by pressing a key on the keyboard, if the cursor points to this element. For example, pressing "A" deletes all items that have the same class as the item that the cursor points to.
How can this be implemented?