It is easy. SDL already has this functionality check examples/Demo/TextInput sample https://github.com/oxygine/oxygine-framework/blob/master/oxygine/src/oxygine/InputText.cpp