Swift Keyboard observer with closure