Fixed threading bug in keyboard screen