Adding Custom Key

Hey,

I’m trying to bind a certain movement action with a custom key (signal’s coming from android running smartphone).
Android app sends signals to my game through tcp/ip. Key pressed in application changes the value from 0 to 1 of the certain element of an array (something like this: char frame[28]). Is it possible to somehow connect it to my eventually created customkey?
If yes then, is it possible to simply add something like this, to add custom key:

static const FKey Customkey; (under the keyboard section in InputCoreTypes.h)

and

AddKey(FKeyDetails(EKeys::Customkey, FText::FromString(“Customkey”))); (in InputCoreTypes.cpp)
?