You could maybe have 2 arrays 1 of vowels and 1 of consonants and then check if the key pressed is in either.

Or you could use the Character.isLetter() method:
Character (Java 2 Platform SE...