@Override
	public void keyTyped(KeyEvent e) {
		if(m.getRenderMode() == Main.RENDER_MODE_HIGHSCORE_ENTER){
			if((e.getKeyChar()+"").matches("[A-Za-z0-9_ ]")&&currentString.length()<10){
				currentString += e.getKeyChar();
			}
			else if(e.getKeyChar()==KeyEvent.VK_BACK_SPACE){
				if(currentString.length()>0)
					currentString = currentString.substring(0, currentString.length()-1);
			}
			else if(e.getKeyChar()==KeyEvent.VK_ENTER){
				enterScore(currentString, currentScore);
				saveHighscores();
				m.showHighscores();
			}
		}
	}