KEYTYPED
KeyTyped is an event type in the Java AWT and Swing event model. It represents the typing of a character by the user and is delivered after a key has been pressed and released to produce a character. It is a higher-level event than keyPressed and keyReleased and is intended for text input.
In a KeyEvent, the keyCode is meaningful for KEY_PRESSED and KEY_RELEASED, but for KEY_TYPED the keyCode is
KEY_TYPED events are commonly used with text components and for simple input handling, such as filtering or
Notes and limitations: KEY_TYPED events are not generated for non-printing keys like arrow keys or Escape, and