Swift : Keyboard caching