11/12 Filling Out The Cases


#1

$(document).ready(function() {
$(document).keydown(function(key) {
switch(parseInt(key.which,10)) {
// Left arrow key pressed
case 37:
$('img').animate({left: "-=10px"}, 'fast');
break;
// Up Arrow Pressed
case 38:
$('img').animate({top: "-=10px"}, 'fast');
break;
// Right Arrow Pressed
case 39:
$('img').animate({left: "+=10px"}, 'fast');
break;
// Down Arrow Pressed
case 40:
$('img').animate({down: "+=10px"}, 'fast');
break;
}
});
});

What's wrong with this?
And i got this
Oops, try again.
** Make sure to press 'left', 'up', 'right', or 'down' to make your character move!**
What does it mean?


#2

You have

$('img').animate({down: "+=10px"}, 'fast');

What you need to have is

$('img').animate({top: "+=10px"}, 'fast');

down doesn't exist.