Additional input added.

Accelerometer and keyboard input. Not yet tested on a device but code
runs without errors.