Make keyboard code more clear.