fix keyboard mode
Merge remote-tracking branch 'upstream'