STEP 13: Now we need to count how many times the left arrow key is pressed. Click on the LOGIC tab to find tools.
When you add commands to an event, you must be sure they have ···· in front of them.
- Go to and drag Global Variable right below the line ····#·add·other·actions...¬
- Change the variable that comes after the keyword global to left_count.
The keyword global allows us to change the value of a variable inside of an event.
To navigate the page using the TAB key, first press ESC to exit the code editor.