Add support to disable/enable the use of buttons

Allow the user to enable or disable the usage of buttons in the buffer