Removed global var in Keyboard plugin