code: protected void onKeyPressed(final KeyEvent keyEvent) {
  
          final WaveData<Boolean> data = WBuilder.waveData(PrezWaves.SKIP_SLIDE_STEP, keyEvent.isControlDown());
  
          if (keyEvent.getCode() == KeyCode.PAGE_DOWN) {
              model().callCommand(ShowNextSlideCommand.class, data);
              keyEvent.consume();
          } else if (keyEvent.getCode() == KeyCode.PAGE_UP) {
              model().callCommand(ShowPreviousSlideCommand.class, data);
              keyEvent.consume();
          }
      }
docs: .
  
  @param keyEvent