revise control bar and keydown