Update keyboard handling