Something like this?

screen.println("ENCRYPT & DECRYPT");
screen.println();
screen.println("Enter q to exit");

String str = keyboard.readLine();
while (!str.equals('q') ){
///do work...