fix bug in KeyboardDisplayer