public boolean keyDown(Event e, int key) 
	{
		if (key == Event.LEFT)
		{
			player.setDirection(Player.LEFT);
			player.setFacing(Player.LEFT);
		} 
		if (key == Event.RIGHT)
		{
			player.setDirection(Player.RIGHT);
			player.setFacing(Player.RIGHT);
		}		
		if (key == Event.UP)
		{
			player.setDirection(Player.UP);
			player.setFacing(Player.UP);
		}
		if (key == Event.DOWN)
		{
			player.setDirection(Player.DOWN);
			player.setFacing(Player.DOWN);
		}
		// user presses space bar
		if (key == 32)
		{
			// Bullet gets added to the outside of the box to avoid accidental hits
			if (player.getFacing() == Player.LEFT)
			{
				bullets.add(new Bullet(
					player.getPosition().x,
					player.getPosition().y,
					Player.LEFT, true));
			}
			else if (player.getFacing() == Player.RIGHT)
			{
				bullets.add(new Bullet(
						player.getPosition().x + Player.WIDTH,
						player.getPosition().y,
						Player.RIGHT, true));				
			}
			else if (player.getFacing() == Player.UP)
			{
				bullets.add(new Bullet(
						player.getPosition().x,
						player.getPosition().y,
						Player.UP, true));
			}
			else 
			{
				bullets.add(new Bullet(
						player.getPosition().x,
						player.getPosition().y + Player.HEIGHT,
						Player.DOWN, true));
			}
		}
		if (key == Event.ENTER)
		{
			bar.switchDebug();
			bar.updateStatus();
		}
		return true;
	}