@Override
		public void keyPressed(KeyEvent e)
		{
			if(context == 0)
			{
				if (e.getKeyCode() == KeyEvent.VK_LEFT)
				{
					context = 1;
				}
			}
			else if(context == 1)
			{
				if (e.getKeyCode() == KeyEvent.VK_RIGHT)
				{
					context = 0;
				}
			}/*
			 Movement testing
			if (e.getKeyCode() == KeyEvent.VK_LEFT)
			{
				entities.elementAt(0).setXDis(-5);
			}
			else if(e.getKeyCode() == KeyEvent.VK_RIGHT)
			{
				entities.elementAt(0).setXDis(5);
			}
			else if(e.getKeyCode() == KeyEvent.VK_UP)
			{
				entities.elementAt(0).setYDis(-5);
			}
			else if(e.getKeyCode() == KeyEvent.VK_DOWN)
			{
				entities.elementAt(0).setYDis(5);
			}
			else if(e.getKeyCode() == KeyEvent.VK_CONTROL)
			{
				if(!ctrl_flag)
				{
					renderer.loadImage("bullet",5);
					Bullet bullet_left = new Bullet(5,5,entities.elementAt(0).getXPos()-3,entities.elementAt(0).getYPos()+15,-10,0,0);
					Bullet bullet_right = new Bullet(5,5,entities.elementAt(0).getXPos()+36,entities.elementAt(0).getYPos()+15,10,0,180);
					Bullet bullet_up = new Bullet(5,5,entities.elementAt(0).getXPos()+15,entities.elementAt(0).getYPos()-3,0,-10,90);
					Bullet bullet_down = new Bullet(5,5,entities.elementAt(0).getXPos()+15,entities.elementAt(0).getYPos()+33,0,10,270);
					createEntity(bullet_left);
					createEntity(bullet_right);
					createEntity(bullet_up);
					createEntity(bullet_down);
					ctrl_flag = true;
				}
			}*/
		}