@Override
	public void keyPressed(KeyEvent evt) {
		
		
		if (evt.getKeyCode() == KeyEvent.VK_ESCAPE) 
			System.exit(0);
		if (evt.getKeyCode() == KeyEvent.VK_RIGHT) 
			dPos.x = MSPEED;
		if (evt.getKeyCode() == KeyEvent.VK_LEFT) 
			dPos.x = -MSPEED;
		
		if ((evt.getKeyCode() == KeyEvent.VK_UP) && isOnGround() ) 
			dPos.y = JSPEED;
		
		if (evt.getKeyCode() == KeyEvent.VK_SPACE  && !rope.isActive()) {//rope!						
			rope.reset();
			rope.setActive(true);						
		}
		
		if (evt.getKeyCode() == KeyEvent.VK_D) {
			//delete ropes for debug reasons... TODO			
			rope.setActive(false);
		}
			
		
	}