@Override
	public void keyReleased(KeyEvent e) 
	{
		// TODO Auto-generated method stub
		switch (e.getKeyCode())
		{
			case KeyEvent.VK_S:	
			{ 
				downPressed=false;
			}
			break;
		
			case KeyEvent.VK_W:	
			{ 
				upPressed=false;
			}
			break;
			
			case KeyEvent.VK_D:	
			{ 
				rightPressed=false;
			}
			break;
		
			case KeyEvent.VK_A:	
			{ 
				leftPressed=false;
			}
			break;
		}
	}