Inputs and outputs worksheet for Years 3–6: Key controls

Members Chapter 2 of Make Your Own Game: Code a Catching Game with Hazel · Year 3, Year 4, Year 5 · 3 pages · PDF, A4

All 7 worksheets in this game

One for each chapter

Key Controls is a printable inputs and outputs worksheet for Years 3 to 6 (ages 7 to 11) that teaches children to use key presses as inputs to move a character on screen, using plus and minus numbers for direction. It follows the KS2 computing national curriculum in England: use sequence in programs, and work with various forms of input and output.

  • 3 A4 pages
  • Answers sheet
  • About 30 minutes
  • Colour or black and white
  • National curriculum

For members Membership opens every worksheet and every game. Already a member? Log in

Start with the free one: Plan a game (chapter 1).

The game for this worksheet Make Your Own Game: Code a Catching Game with Hazel Chapter 2 · Control a character with key presses (input and sequence) · read aloud ▶ Play chapter 2 in the gameChapter 1 is free

Print it on A4, in colour or black and white. Do it after the chapter, or before it to see what your child already knows.

What's on the worksheet

Use key presses (inputs) to move a character (the output), choose the right event block, and use plus and minus for left and right. Includes a robot controller game at home, and answers.

Page 1 · Learn
Flip shows arrow keys (input) running two scripts that move a basket (output), with an x number line. A worked example builds the left-arrow script, then a warm-up sorts inputs and outputs.
Page 2 · Try it together
Robot controller: one person holds up LEFT and RIGHT cards (inputs), the other steps that way (outputs), then they predict where a sequence of 4 cards ends.
Pages 2–3 · Practise
Tick input or output, fill gaps in key-press scripts, work out x after a sequence of key presses and spot a script with the wrong event. Then a challenge about the wrong sign.
Answers sheet
Every answer by page, what to watch out for (the wrong sign, the wrong event, mixing up input and output) and quick ideas without paper.

3 A4 pages and an answers sheet · about 30 minutes

Using it at home

  • Play Robot controller before the Practise page: stepping left and right makes plus and minus directions easy to remember.
  • Ask your child to read each script out loud as a sentence, such as "When the left arrow is pressed, change x by minus 10."

Watch out for

Using the wrong sign, so the character moves right when it should move left.
Show the x number line: right is plus and left is minus. Ask "Should x get bigger or smaller?"
Starting a movement script with the flag instead of a key press.
Ask "What should make this happen?" A key press script runs every time the key is pressed.
Mixing up inputs and outputs.
Inputs go in to the computer (keys, mouse, microphone). Outputs come out (the screen, sounds).

Questions from the worksheet

  1. Tick input or output: pressing the right arrow key, a pop sound, clicking the mouse, the score on screen, speaking into a microphone.
  2. The basket starts at x: 0. Right changes x by 10. Left changes x by -10. Where does it end after right, right, left, right?
  3. Sam wants the basket to move right when he presses the right arrow key, but his script starts with when flag clicked. What's wrong?
  4. Leo's left arrow script says change x by 10. What happens when he presses the left arrow key? What should he change?

The answers are on the answers sheet, for grown-ups.

National curriculum in England

This worksheet practises these statements from the Years 3–6 computing programme of study:

  • Design, write and debug programs that accomplish specific goals, including controlling or simulating physical systems; solve problems by decomposing them into smaller parts
  • Use sequence, selection, and repetition in programs; work with variables and various forms of input and output

Source: National curriculum in England: computing programmes of study (DfE)

In the classroom

  • Play Robot controller in the hall with the class as robots, then write the card sequences as code on the board.
  • Use Practise C as a mini-whiteboard check: read out a key sequence and children show the final x.

Questions and answers

What are inputs and outputs in computing?

An input is information going in to a computer, like a key press or a mouse click. An output is what comes out, like a character moving on the screen or a sound.

Why does change x by -10 move a character left?

x is the position from left to right, with 0 in the middle. Adding a minus number makes x smaller, so the character moves left.

More worksheets from Make Your Own Game: Code a Catching Game with Hazel

More Year 3 technology worksheets

One for every chapter of every game, with answers.

Browse them →