Button selector, gets left or right button and calls appropriate code.