About the switch case, you can use chars, for example:


key = myscan.next().toUpperCase();
char c = key.charAt(0);
switch (c) {
case 'S':...