Inside the KeyTyped method, how do I tell if Backspace or Esc is being pressed?
KeyTyped
Check below code, I hope it will work for you.
@FXML public void keyPresses(KeyEvent ke) { if (ke.getCode().equals(KeyCode.BACK_SPACE)) { System.out.println("It Works Backspace pressed..!"); } }