Hey there @LightWizzard! Welcome to the community! Generally virtual keyboards are usually done using UMG. If you’d rather have a tangible example, here’s a video from a VR developer that goes over his implementation a bit, and I believe offers the source! You would need to change it a bit for non VR games.
Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.