https://answers.unrealengine.com/questions/166084/check-keyboard-events-in-code.html
EnableInput(this);