Bug 973456 - Refactor keyboard panels using AMD