@Override
	public void keyPressed(KeyEvent e) 
	{
		switch (e.getKeyCode())
		{
			case KeyEvent.VK_S:	
			{ 
				downPressed=true;
			}
			break;
			
			case KeyEvent.VK_W:	
			{ 
				upPressed=true;
			}
			break;
			
			case KeyEvent.VK_D:	
			{ 
				rightPressed=true;
			}
			break;
			
			case KeyEvent.VK_A:	
			{ 
				leftPressed=true;
			}
			break;
		}
	}