How To Add Spanish — Keyboard
If you find yourself pressing the wrong keys because the layout is physically different than what is printed on your keys, try adding instead. This layout uses the standard English QWERTY hardware layout but adds the ability to type Spanish characters using the Right Alt key (e.g., Right Alt + n = ñ).
from pynput import keyboard
@Override public void keyReleased(KeyEvent e) { if (e.getKeyCode() == KeyEvent.VK_ESCAPE) { // Stop listener } } how to add spanish keyboard
