Text Input with Accents and Umlauts in Metal game

How to correctly handle text input with accents and umlauts in macOS? We write a 3D game using Metal and there is no standard text input box. Should we manually process a modifier key (Option)? Or there is a ready solution to tell MTKView that we input text?
Text Input with Accents and Umlauts in Metal game
 
 
Q