public void menuGenKey() {
        int choice;

        do {
            System.out.println("\n");
            System.out.println("Select Key Generator");
            System.out.println("--------------------\n");
            System.out.println("1 - SHA3-Keccak Key as Text");
            System.out.println("2 - SHA3-Keccak Key as File");
            System.out.println("3 - RSA Keys as Text");
            System.out.println("4 - RSA Keys as Files");
            System.out.println("5 - Back");
            System.out.print("Enter Number: ");
            while (!scanner.hasNextInt()) {
                System.out.print("That's not a number! Enter 1,2,3,4 or 5:");
                scanner.next();
            }
            choice = scanner.nextInt();
        } while (choice < 1 || choice > 5);

        switch (choice) {
            case 1:
                GenSHA3UI.genSHA3KeyText(this);
                break;
            case 2:
                GenSHA3UI.genSHA3KeyFile(this);
                break;
            case 3:
                GenRsaKeyUI.genRSAKeysText(this);
                break;
            case 4:
                GenRsaKeyUI.genRSAKeysFile(this);
                break;
            case 5:
                this.run();
                break;
            default:
                this.menuGenKey();
        }
    }