function keyPressed(){
  if(keyCode===RIGHT_ARROW){
    Matter.Body.applyForce(ball,{x:0,y:0},{x:0.05,y:0})
  }
}
//keyPressed function is invoked/called if any key on your keyboard is pressed
keyPressed function is invoked/called if any key on your keyboard is pressed
keyPressed function is invoked / called if any key on your keyboard is pressed
function keyPressed(){
  if(keyCode===RIGHT_ARROW){
    Matter.Body.applyForce(ball,{x:0,y:0},{x:0.05,y:0})
  }
}
function keyPressed ( ) { if ( keyCode === RIGHT_ARROW ) { Matter . Body . applyForce ( ball , { x : 0 , y : 0 } , { x : 0.05 , y : 0 } ) } }
keyPressed function is invoked/called if any key on your keyboard is pressed
keyPressed function is invoked / called if any key on your keyboard is pressed