var car = $('#car')
$(document).keyup(function(e) {
if (e.keyCode == 68) {
console.log("d")
car.animate({'left': '+=50'},350);
}
else if (e.keyCode == 83) {
console.log("s")
car.animate({'top': '+=50'},350);
}
else if (e.keyCode == 87) {
console.log("w")
car.animate({'bottom': '+=50'},350);
}
else if (e.keyCode == 65) {
console.log("a")
car.animate({'right': '+=50'},350);
}
});