add keyboard actions to buttons