Skip to content

Keyboard controls are available in the Microsoft MakeCode for micro:bit block-based editor to allow programs to be created with a keyboard or assistive technologies.

Visit the webinar video recording to access an introduction to keyboard navigation.

How to use keyboard controls

Keyboard controls are built into MakeCode, no setup required.

Open a project in the MakeCode editor, press Tab to reach Skip to Blocks workspace and then Enter. Use Control + / (Windows) or Command + / (Mac) to open and close the keyboard controls help in the editor.

More details of the functionality are provided within the Microsoft MakeCode Accessibility Statement. In addition, the resources below may be useful to help you get started.

Keyboard controls guide (PDF)

This guide is designed to be printed or shown on a second screen. It provides a visual guide to the main keyboard controls. Some additional keyboard controls can be found in the MakeCode keyboard controls (text guide).

Image of start of page 1 of the MakeCode Keyboard Controls pdf for Windows
Keyboard Controls (visual guide) PDF

Getting started videos

These 3 videos provide step-by-step instructions to guide you through creating projects using only keyboard controls. Each video focuses on different keyboard control functionality:

  1. Getting started with keyboard controls. Turn on keyboard controls, create and edit a program and use the simulator.
  2. Using loops, on shake, show LEDs, and play melody blocks with keyboard controls.
  3. Using logic, play tone and temperature blocks with keyboard controls.

Note: These videos were created on a Windows computer. Mac users should use Command instead of Control.

FAQs

Does keyboard navigation work in MakeCode within micro:bit CreateAI?

Yes, you can use keyboard navigation when you use the MakeCode code editor in micro:bit CreateAI.

Does keyboard navigation work in MakeCode within micro:bit classroom?

Yes, you can use keyboard navigation when you use the MakeCode code editor in micro:bit classroom.

The top bar in micro:bit classroom is not accessible from the MakeCode area menu. Use Control + B (Windows) or Command + B (Mac) to open the area menu, press the number shown in the area on the left, then press Shift + Tab to move back to the top bar. Alternatively, use Control + L (Windows) or Command + L (Mac) to focus the address bar and tab forward from there.

Who can benefit from keyboard controls?

Keyboard controls make block-based coding accessible to students with fine motor challenges. Keyboard controls are available to everyone.

Some users find it faster to use keyboard controls or prefer to use them for some actions. Many mouse users already use keyboard shortcuts for copy and paste and will find others useful.

How should I get started using keyboard controls?

To get started, we recommend:

For keyboard navigation, should I use block-based or text-based coding?

For users who are new to coding or the micro:bit, we recommend block-based coding in MakeCode.

For more advanced users, or those wishing to try text-based coding, we recommend the micro:bit Python editor.

Both work well for keyboard or assistive technology users.

Can I navigate the Microsoft MakeCode block editor using the keyboard only?

All areas of the block-based editor are keyboard accessible and programs can be downloaded to a micro:bit using keyboard controls.

Additional features and improvements will be made in future versions based on feedback.

Can I use keyboard shortcuts if I find it difficult to hold multiple keys at once?

Most shortcuts use a single key, but some require you to hold Control or Command while pressing another key. If this is difficult for you, we recommend using StickyKeys which is an accessibility feature available on all major platforms. This allows you to press one key at a time, but your computer treats it as if the keys were being held down together.

What are the current limitations and workarounds?

There are some limitations in the current release of MakeCode that will be addressed in a future release.

  • Comments: Support for block comments is limited. You can add a block comment from the context menu on a block and open it with Enter or Space and add comment text. Escape closes the comment and block comments cannot be positioned on the workspace. Workspace comments are fully supported.

If you encounter a situation where the keyboard controls can’t be used to navigate then use Control + R (Windows) or Command + R (Mac) to reload the page and continue.

How do I turn on keyboard controls in MakeCode?

Keyboard controls are always enabled in MakeCode.

An earlier version of MakeCode needed you to turn on keyboard controls. If you use the MakeCode for micro:bit offline app, then click Settings then About to check you have the latest version (at least 9.0.8).

Use Control + / (Windows) or Command + / (Mac) to open and close the keyboard controls help in the editor.

For more details of the keyboard controls, see the Microsoft MakeCode Accessibility statement and the PDF and videos on this page.

Is there a quick way to navigate between areas like the workspace, simulator and toolbox?

Yes, press Control + B (Windows) or Command + B (Mac) to open the Areas menu, then the number of the area you want to jump to.

Alternatively, Tab and Shift + Tab can be used to navigate the whole page.

For more details of the keyboard controls, see the Microsoft MakeCode Accessibility statement and the PDF and videos on this page.