got my g1 and gb keys working again, added coloring of the state indicator