第 5 步:让我们学习如何为键盘上的任何键创建事件!

请记住通过将命令前面的变量名称更改为dancer来将所有动作分配给dancer

  • 并将My Key Press拖到程序的底部。
  • Turn Left拖动到事件中。
  • 在事件中拖动Turn Right

    To navigate the page using the TAB key, first press ESC to exit the code editor.

    # THIS ACTIVITY IS IN PREVIEW ONLY MODE
    • Run Code
    • 提交作品
    • 下个活动
    • Show Console
    • Reset Code Editor
    • Codesters How To (opens in a new tab)