Add new classes to support input events.