@Override
    public void handle(KeyEvent keyEvent) {
        KeyCode code = keyEvent.getCode();

        if (keyEvent.isShortcutDown()) {
            if (code.getName().equals("P")) {
                BoardPage bp = new BoardPage("New page", 4, 4);
                pagesPane.getTabs().add(bp);
            } else if (code.getName().equals("C")) {
                commandLine.requestFocus();
            } else if (code.ordinal() >= 25 && code.ordinal() <= 33) {
                pagesPane.getSelectionModel().select(code.ordinal() - 25);
            }
        }


    }