New and improved version

This code can now detect horizontal movements :)

Oh and it will only output a change in state when the button is pressed