Add functionality for input buttons.