Keyboard Control in Flock XR

Flock XR is a great tool to promote creativity in programming lessons using block-based commands to build projects in a 3D world. The software can be used by all ages of students, but is particularly suited to key stage 2 and 3 learners (aged 9-14). I’ve written about Flock XR before here, and its benefits for engaging learners with a range of additional learning and health needs.

The tool has been built with inclusion at its heart and it’s great to see that the upcoming release includes the option to use the keyboard instead of a mouse to write programs. Version 2 is set for full release in 2027, but you can access a development version from the homepage at https://flockxr.com/ – click on the About menu then select Versions and Explore Release 2. The good news for keen coders is that Flock XR uses the same basic set of keys as the keyboard control in the MakeCode editor for the micro:bit, so you can learn one and transfer what you know across coding environments. This work was made possible by funding from the NLNet Foundation.

Why is keyboard control important?

So why design something to be used by keyboard? Well, there are benefits for everyone here, but specifically:

  • Using drag-and-drop to add blocks presents a barrier for some users. Pupils need to use the mouse or trackpad to target an area precisely, then keep the left-button pressed whilst they move the cursor. This is hard for pupils with motor impairments, dyspraxia, tremors, hypermobility or fatigue conditions. It is also challenging for many younger pupils using trackpads or mice without well-developed fine motor skills. I frequently observe children run out of space to move the mouse or their finger on the trackpad, and so have to start again, which can be frustrating.
  • Screen reader and braille display users also depend on keyboard control. Block editors are by their nature very visual, requiring a spatial awareness of where the blocks go. This is why block-based programming tools have historically excluded blind and visually-impaired pupils. Keyboard controls mean that users can move through blocks in a logical order, and add blocks to a specific position without the need to see where that actually is.
  • Keyboard control may also benefit eye-gaze and voice users, as many assistive technologies work by emulating keyboard input, so a keyboard-operable editor is usually compatible with them without extra work.

Some users without disabilities or additional learning needs actively choose to use keyboard shortcuts in applications, as it can be faster and reduce the risk of injury from over-use of the mouse. As ever, the more varied means of accessing a tool, the more accessible it becomes.

Supporting your learners to use keyboard control

One disadvantage of keyboard control is the amount of extra information required for pupils to learn, at the same time as learning how to code. In order to avoid cognitive overload, small steps are advisable, as well as providing opportunities for learners to explore and read code before they modify and create their own using a keyboard. Here is a possible series of steps for teachers of pupils with limited motor skills to follow. For those working with visually-impaired or blind students, a different approach will be required with more one-to-one support required:

  1. Start by allowing pupils to explore what Flock XR can do using a demo project. The Forest Base or Alien Planet are good for this as the character can be moved around using the keyboard. Model how to access the project and the basic controls. After a set amount of time ask them to feedback what they have learnt about Flock XR.
  2. Open a simple starter project. Model how to access the code editor and move between blocks. Model how to make simple changes to the colour of the sky.
  3. Provide learners with the starter project and ask them to modify it to change the colour of the sky. Some pupils will be able to change the colour and pattern of the ground.
  4. Investigate the character block together – ask pupils what they think each part does. Model how to change the character, colour of hair and size.
  5. Ask pupils to change 3 things in their project. You could set these explicitly, or allow pupils to decide. For example: change the character, what the character says, and the animation it does after it talks.
  6. Ask them to test their project, then save it.

By following this sequence, learners are supported to use the basic keyboard controls and explore the basic blocks that make up a project, without overloading them with too much information and avoiding any risk that comes with designing their own projects from first principles. We have created a set of slides that can be used to work through this sequence and a printable guide to the basic keyboard controls. You can download these here, together with a starter project for pupils to modify:

As a next step, pupils could be supported to build their own basic project with a printed or digital worksheet to guide them through each step. Here is a code along guide to build the starter project above from first principles:

– Flock XR Code Along – Welcome Project

There are also two Code Along projects in the Flock XR Hub that use keyboard controls, one to create an animated character and a second to create an ambient scene.

Hopefully this blog and the additional materials will help you to support all of your learners that would benefit from using the keyboard to code in Flock XR, and allow greater access to this creative tool.

Comments are closed.