Add keypress up/down events to switch panels