Release vs. Debug or Editor mode in Blueprint Script

How does one tell if the game is in release mode or debug in a blueprint script.

E.g. We want to disable some keyboard keys in release mode.

E.g. We want to change speed settings in release mode so debug can move faster.

E.g. we want to disable some game play in release mode.

On a similar not: How do you get command consol settings or events in scripting.
Such as if the player pops the console and types in fly or god

Figured out a solution.

bool UMyGamesBP::IsDebugBuild() {
#ifdef UE_BUILD_DEBUG
	return true;
#else
	return false;
#endif