#include <InputCoreTypes.h> //EKeys的头文件
//获取PlayerController玩家控制器
APlayerController* PlayerControl = UGameplayStatics::GetPlayerController(GetWorld(), 0);
//判断键盘LeftControl(左键Ctrl)是否按下
if (PlayerControl->IsInputKeyDown(EKeys::LeftControl))
{
}
//判断键盘LeftMouseButton(鼠标左键)是否按下
if (PlayerControl->IsInputKeyDown(EKeys::LeftMouseButton))
{
}