you just put stuff like this into your UIScreen class
simulated function bool OnUnrealCommand(int cmd, int arg)
{
if( !CheckInputIsReleaseOrDirectionRepeat(cmd, arg) )
return false;
switch( cmd )
{
case class'UIUtilities_Input'.const.FXS_BUTTON_B:
case class'UIUtilities_Input'.const.FXS_KEY_ESCAPE:
case class'UIUtilities_Input'.const.FXS_R_MOUSE_DOWN:
OnCancel();
break;
}
return super.OnUnrealCommand(cmd, arg);
}
This example is how you implement closing a screen (OnCancel() function) with ESC/Controller button B/Right click Note that screens don't catch listen to all input, you can listen to ctrl/alt/esc/arrows/mouse clicks/controller buttons