Check out the Scanner class; it is a way to get input. After you get input, you can just check to see if it matches the values "u", "d", "l", or "r" by using the <String>.equals() method. As...