More keyboard handling fixes, plus docs update