You can access this by the keyboard event passed into the handler, which holds a reference to the key that triggered it. window.onkeydown = moveHero; ...
確定! 回上一頁