Reformat keyboard.js to use booleans instead of integers

Case statements make parsing data like this a lot easier in the long run. Neater to read and understand and not nearly as many if statements. A lot shorter too. You don't have to scroll through a bunch of junk now. Booleans also make more sense in this context because all you need is an on state and an off state, which is exactly what a boolean does. It also uses a lot less memory because all it takes up is one bit instead of several bytes for an integer. You will have to change the main file as well but that's just a simple search and replace.