@Override
	public void keyReleased(KeyEvent e) {
		switch (e.getKeyCode()) {
		case KeyEvent.VK_ENTER:
			if (callback != null) {
				callback.onNameEntered(enteredName);
			}
			leaveInputMode();
			break;
		case KeyEvent.VK_ESCAPE:
			leaveInputMode();
			break;
		}
	}