How to code a 2 Axis System

And by all means: start with a single axis (left/right). Make that work first, much easier.