Not sure how you'd send it to the cRIO, but in order to read input from the keyboard, you'd do the following
Code:
import java.util.Scanner;
main{
Scanner scn = new Scanner(System.in);
System.out.println("Enter command:");
string command = scn.nextLine();//or it might be scn.nextString()
//Send command to cRIO
}