there is an error with the ending bracket which i dunno what to do about. (new to greenfoot btw)
public void eatKey ()
{
Actor Main = getOneIntersectingObject(Key.class);
if(Key != null)
getWorld().removeObject(Key);
}
