d press "space".<br>
2) use left/right key to move between phrases and press "space" to open the candidate window<br>
3) use up/down key to choose candidate, press "Esc" to close the candidate window or press "Enter" to commit<br><br>
<canvas id="myCanvas" width="400" height="200" style="border:1px solid #000000;">
</canvas>

<script>
    let canvas = document.getElementById("myCanvas");
    let canvasContext2D = canvas.getContext("2d");
    canvasContext2D.font = "30px Arial";
    let charWidth =