An additional class for manage the key events in javascript