Remove capslock listener and cleanup