Altering all instances of a class

It appears that this would work in this case, yes, but what about the problem which causes the only the most recent instance of a class to respond to keypress events?