smarter displaybutton and keyrepeats