@Override
			public void keyPressed(KeyEvent ke) {
                switch(ke.getKeyCode()) {
                    case KeyEvent.VK_UP: isUpPressed = true; break;
                    case KeyEvent.VK_DOWN: isDownPressed = true; break;
                    case KeyEvent.VK_SPACE: isSpacePressed = true; break;
                }
            }