im making a simple game where once you've killed all people, and pressed enter, you go to the next level
here is the codemy problem is that greenfoot doesn't realise that enter is being pressed and doesn't do anything, the only button greenfoot detect for some reason is w, anything else and it doesn't read it, please help if you can
if(isTouching(human1.class))
{
if (getWorld() instanceof level1)
{
removeTouching(human1.class);
bumpCounter(1);
Greenfoot.playSound ("scream1.1.mp3");
if (getWorld().getObjects(human1.class).isEmpty() )
{
canMove = false;
if (Greenfoot.isKeyDown("e"))
{
victory victory = new victory();
World world = getWorld();
world.addObject(victory, 550, 200);
bumpCounter(1);
Greenfoot.delay(200);
level2 l2 = new level2();
Greenfoot.setWorld(l2);
}
}
}