private static void updateKeyboardList()
	{
		mousePressed = false;
		mouseReleased = false;
		while(Mouse.next())
		{
			boolean button = Mouse.getEventButtonState();
			int eventButton = Mouse.getEventButton();
			if(button && eventButton == 0)
			{
				mousePressed = true;
			} else if(!button && eventButton == 0)
				mouseReleased = true;
		}
		
		deltaWheel = Mouse.getDWheel();
		
		charList.clear();
		charListLimited.clear();
		keyboardList.clear();
		while(Keyboard.next())
		{
			if(Keyboard.getEventKeyState())
			{
				char c = Keyboard.getEventCharacter();
				if(allowedChars.contains((""+c)))
					charListLimited.add(c);
				if(Keyboard.getEventKey() == Keyboard.KEY_BACK)
					charListLimited.add('\b');
				charList.add(c);
				keyboardList.add(Keyboard.getEventKey());
			}
		}
	}