Seg fault with multiple keyboards in keyboard indicator