Added the current display variable and the switch statement for the
eventHandler loop