You've spelt style incorrectly.
dinito.sytle.bottom
Should be
dinito.style.bottom
This appears in 2 places.
Your github doesn't seems to be up to date so I've added bits to get it working.
Declaring variables with initial values...
var position = 0;
var isJumping = false;
var dinito = document.getElementById("dinito");
Added an id to dinito
<div id="dinito" class="dinito"></div>
Changed the way keycode is obtained
if (event.code === "ArrowUp") {
Here is a working fiddle of all the above changes: https://jsfiddle.net/4cs97fmk/
If it doesn't work then you need to click on the page before keyboard event start working.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…