public static int getMapping(String key) {
		String value = props.getProperty(key).toUpperCase();

		if (value.length() == 1)
			return value.charAt(0);
		else if ("MOUSE_LEFT".equals(value.toUpperCase()))
			return InputEvent.BUTTON1_DOWN_MASK;
		else if ("MOUSE_RIGHT".equals(value.toUpperCase()))
			return InputEvent.BUTTON2_DOWN_MASK;
		else if ("MOUSE_MIDDLE".equals(value.toUpperCase()))
			return InputEvent.BUTTON3_DOWN_MASK;
		return Integer.MIN_VALUE;
	}