DWQA Ask Question › Java_Q: Write a Java program to detect key presses. 0 Vote Up Vote Down admin Staff asked 7 years ago Write a Java program to detect key presses. If the user pressed number keys( from 0 to 9), the program will tell the number that is pressed, otherwise, program will show “Not allowed”.