public void keyPressed(KeyEvent e)
	{
		int key = e.getKeyCode();
		if(vert)
		{
			if(key == KeyEvent.VK_UP)
			{
				keyboardInput=true;
				if(y<min)
				{
					y=min;
				}
				displacement-=32;
			}
			if(key == KeyEvent.VK_DOWN)
			{
				keyboardInput=true;
				if(y+height>max)
				{
					y=max-height;
					displacement = (y-min)*ratio;
				}
				else
				{
					displacement+=32;
					y=(displacement/ratio) + min+64;
				}
			}
		}
		
		if(key == KeyEvent.VK_LEFT)
		{
		}
		if(key == KeyEvent.VK_RIGHT)
		{
		}
	}