x = canvas.width;
ctx.fillText(text, x-160, 77);
<table><tr><td>
<button type="button" id="up_down1" style=" font-size:20px; " onclick="accelerate(-1)">up</button>
<button type="button" id="middle" style=" font-size:12px; " onclick="accelerate(0)">stop</button>
<button type="button" id="up_down2" style=" font-size:20px; " onclick="accelerate(1)">down</button>
</td></tr><tr><td>
<button type="button" id="take_off" style=" font-size:12px; " onclick="start(1)">take off</button>
<script>
document.getElementById('up_down1').style.width = window.innerWidth/ 3;
document.getElementById('up_down1').style.height = window.innerHeight/ 6;
...
...
...
</script>[/CODE