A Functionality for IR button presses