keydown handling (show, next, quit)