I have a canvas on html and using JavaScript, I created an object (a square) that can be controlled using WASD keys.
var object = { height: 40, width: 40,