Organize the keyboard util functions