@Override
	public void keyPressed(KeyEvent arg0) {
		//press up key
		if(arg0.getKeyCode() == KeyEvent.VK_UP){
			upPressed = true;
			downPressed = false;
			shopkeepSays = POTION;
			this.repaint();
		}
		//press down key
		else if(arg0.getKeyCode() == KeyEvent.VK_DOWN){
			downPressed = true;
			upPressed = false;
			shopkeepSays = "";
			this.repaint();
		}
		//press enter key
		else if(arg0.getKeyCode() == KeyEvent.VK_ENTER){
			if(upPressed){
				//check hero has enough gold
				if(hero.getGold() - 1000 >= 0){
					hero.setGold(hero.getGold()-1000);
					hero.setPotionCount(hero.getPotionCount()+1);
					shopkeepSays = THANKS;
				}
				else{
					shopkeepSays = NOTENOUGH;
				}
				this.repaint();
			}
			else{
				JFrame dungeonFrame = GameController.getDungeonFrame();
				dungeonFrame.remove(this);
				dungeonFrame.add(GameController.getDungeonPanel());
				GameController.getDungeonPanel().repaint();
				dungeonFrame.revalidate();
			}
		}
	}