Buggy code:
private final JCheckBoxMenuItem toggleShowReceiversCheck = new JCheckBoxMenuItem ( ) ; private final JCheckBoxMenuItem toggleLogTreeMenuItem = new JCheckBoxMenuItem ( ) ; private final JCheckBoxMenuItem toggleScrollToBottomMenuItem = new JCheckBoxMenuItem ( ) ; private final JCheckBoxMenuItem toggleDetailMenuItem = new JCheckBoxMenuItem ( ) ; private final JCheckBoxMenuItem toggleCyclicMenuItem = new JCheckBoxMenuItem ( ) ; private final FileMenu fileMenu ; private final JCheckBoxMenuItem toggleStatusBarCheck = new JCheckBoxMenuItem ( ) ; private final JMenu viewMenu = new JMenu ( "View" ) ; private final JMenuBar menuBar ; private final JCheckBoxMenuItem menuItemClose = new JCheckBoxMenuItem ( ) ; private final JToolBar toolbar ; private LogUI logui ; private final SmallButton clearButton = new SmallButton ( ) ; private final SmallToggleButton detailPaneButton = new SmallToggleButton ( ) ; private final SmallToggleButton logTreePaneButton = new SmallToggleButton ( ) ; private final SmallToggleButton scrollToBottomButton = new SmallToggleButton ( ) ; private final SmallToggleButton pauseButton = new SmallToggleButton ( ) ; private final SmallToggleButton toggleCyclicButton = new SmallToggleButton ( ) ; private final Action [ ] logPanelSpecificActions ; private final JMenu activeTabMenu = new JMenu ( "Current<seq2seq4repair_space>tab" ) ; private final JPanel findPanel ; ChainsawToolBarAndMenus ( final LogUI logui ) { } private Action createChangeModelAction ( ) { } private Action createToggleLogTreeAction ( ) { } private Action createScrollToBottomAction ( ) { } public void stateChange ( ) { } public void stateChanged ( ChangeEvent e ) { } JMenuBar getMenubar ( ) { } JToolBar getToolbar ( ) { } private Action createClearAction ( ) { } private Action createCloseHelpAction ( ) { } private void createMenuBar ( ) { } private Action createPauseAction ( ) { } private Action createShowPreferencesAction ( ) { } private Action createCustomExpressionPanelAction ( ) { } private Action createShowColorPanelAction ( ) { } private Action createShowReceiversAction ( ) { } private Action createToggleDetailPaneAction ( ) { } private Action createToggleToolbarAction ( ) { } private void createToolbar ( ) { Insets buttonMargins = new Insets ( 1 , 1 , 1 , 1 ) ; FileMenu menu = ( ( FileMenu ) ( menuBar . getMenu ( 0 ) ) ) ; JButton fileOpenButton = new SmallButton ( menu . getLog4JFileOpenAction ( ) ) ; fileOpenButton . setMargin ( buttonMargins ) ; JButton fileSaveButton = new SmallButton ( menu . getFileSaveAction ( ) ) ; fileSaveButton . setMargin ( buttonMargins ) ; fileOpenButton . setText ( "" ) ; fileSaveButton . setText ( "" ) ; toolbar . add ( fileOpenButton ) ; toolbar . add ( fileSaveButton ) ; toolbar . addSeparator ( ) ; pauseButton . setAction ( pauseAction ) ; pauseButton . setText ( "" ) ; pauseButton . getActionMap ( ) . put ( pauseAction . getValue ( Action . NAME ) , pauseAction ) ; toggleCyclicButton . setAction ( changeModelAction ) ; toggleCyclicButton . setText ( null ) ; detailPaneButton . setAction ( toggleDetailPaneAction ) ; detailPaneButton . setText ( null ) ; detailPaneButton . getActionMap ( ) . put ( toggleDetailPaneAction . getValue ( Action . NAME ) , toggleDetailPaneAction ) ; detailPaneButton . getInputMap ( JComponent . WHEN_IN_FOCUSED_WINDOW ) . put ( KeyStroke . getKeyStroke ( KeyEvent . VK_D , InputEvent . ALT_MASK ) , toggleDetailPaneAction . getValue ( Action . NAME ) ) ; logTreePaneButton . setAction ( toggleLogTreeAction ) ; logTreePaneButton . getActionMap ( ) . put ( toggleLogTreeAction . getValue ( Action . NAME ) , toggleLogTreeAction ) ; logTreePaneButton . getInputMap ( JComponent . WHEN_IN_FOCUSED_WINDOW ) . put ( KeyStroke . getKeyStroke ( KeyEvent . VK_T , InputEvent . ALT_MASK ) , toggleLogTreeAction . getValue ( Action . NAME ) ) ; logTreePaneButton . setText ( null ) ; scrollToBottomButton . setAction ( toggleScrollToBottomAction ) ; scrollToBottomButton . getActionMap ( ) . put ( toggleScrollToBottomAction . getValue ( Action . NAME ) , toggleScrollToBottomAction ) ; <START_BUG> scrollToBottomButton . getInputMap ( JComponent . WHEN_IN_FOCUSED_WINDOW ) . put ( KeyStroke . getKeyStroke ( KeyEvent . VK_B , InputEvent . ALT_MASK ) , toggleScrollToBottomAction . getValue ( Action . NAME ) ) ; <END_BUG> scrollToBottomButton . setText ( null ) ; SmallButton prefsButton = new SmallButton ( showPreferencesAction ) ; SmallButton undockButton = new SmallButton ( undockAction ) ; undockButton . setText ( "" ) ; toolbar . add ( undockButton ) ; toolbar . add ( pauseButton ) ; toolbar . add ( toggleCyclicButton ) ; toolbar . addSeparator ( ) ; toolbar . add ( detailPaneButton ) ; toolbar . add ( logTreePaneButton ) ; toolbar . add ( scrollToBottomButton ) ; toolbar . add ( prefsButton ) ; toolbar . addSeparator ( ) ; toolbar . add ( clearButton ) ; clearButton . setAction ( clearAction ) ; clearButton . setText ( "" ) ; toolbar . addSeparator ( ) ; JButton findNextButton = new SmallButton ( findNextAction ) ; findNextButton . setText ( "" ) ; findNextButton . getActionMap ( ) . put ( findNextAction . getValue ( Action . NAME ) , findNextAction ) ; findNextButton . getInputMap ( JComponent . WHEN_IN_FOCUSED_WINDOW ) . put ( ( ( KeyStroke ) ( findNextAction . getValue ( Action . ACCELERATOR_KEY ) ) ) , findNextAction . getValue ( Action . NAME ) ) ; JButton findPreviousButton = new SmallButton ( findPreviousAction ) ; findPreviousButton . setText ( "" ) ; findPreviousButton . getActionMap ( ) . put ( findPreviousAction . getValue ( Action . NAME ) , findPreviousAction ) ; findPreviousButton . getInputMap ( JComponent . WHEN_IN_FOCUSED_WINDOW ) . put ( ( ( KeyStroke ) ( findPreviousAction . getValue ( Action . ACCELERATOR_KEY ) ) ) , findPreviousAction . getValue ( Action . NAME ) ) ; findPanel . add ( findField ) ; toolbar . add ( findPanel ) ; toolbar . add ( findNextButton ) ; toolbar . add ( findPreviousButton ) ; toolbar . addSeparator ( ) ; showReceiversButton . setText ( null ) ; toolbar . add ( showReceiversButton ) ; toolbar . add ( Box . createHorizontalGlue ( ) ) ;

Fix:
scrollToBottomButton . getInputMap ( JComponent . WHEN_IN_FOCUSED_WINDOW ) . put ( KeyStroke . getKeyStroke ( KeyEvent . VK_B , InputEvent . CTRL_MASK ) , toggleScrollToBottomAction . getValue ( Action . NAME ) ) ;