public boolean isKeyPressed(int keyCode) {
	// apparently, someone at decided not to use standard 
	// keycode, so we have to map them over:
	switch(keyCode) {
	case KeyEvent.VK_SPACE:
		keyCode = Keyboard.KEY_SPACE;
		break;
	case KeyEvent.VK_UP:
		keyCode = Keyboard.KEY_UP;
		break;
	case KeyEvent.VK_DOWN:
		keyCode = Keyboard.KEY_DOWN;
		break;
	case KeyEvent.VK_LEFT:
		keyCode = Keyboard.KEY_LEFT;
		break;
	case KeyEvent.VK_RIGHT:
		keyCode = Keyboard.KEY_RIGHT;
		break;
	case KeyEvent.VK_SHIFT:
		keyCode = Keyboard.KEY_LSHIFT;
		break;
	case KeyEvent.VK_P:
		keyCode = Keyboard.KEY_P;
		break;
	}    

	return org.lwjgl.input.Keyboard.isKeyDown(keyCode);
}