Configure keyboard inputs once for all scenes to use

You can make shared functions createControls() and updateControls() and pass in the scene.