Changed how the AdvancedKeyListener works.