Bug 973456 - Refactor keyboard panels using AMD r=evelyn

https://bugzilla.mozilla.org/show_bug.cgi?id=973456