Improve keyboard code snippet.