public void keyPressed(KeyEvent e){
		
		if(e.getKeyCode() == KeyEvent.VK_UP){
			direction = 1;
		}
		
		if(e.getKeyCode() == KeyEvent.VK_DOWN){
			direction = 2;
		}
		
		if(e.getKeyCode() == KeyEvent.VK_LEFT){
			direction = 3;
		}
		
		if(e.getKeyCode() == KeyEvent.VK_RIGHT){
			direction = 4;
		}
		froggy.moveFrog(direction);
		repaint();
	}