Finally Figured it out thank you so much man here is the final command
// final
{
// create a window
window -title "Nut" -menuBar true -w 220 -h 200 "";
// define the layout of controls added
// to the window.
columnLayout;
// create a collapsible frame layout
frameLayout -collapsable true -label "Nuts";
// add the other controls
flowLayout -columnSpacing 1 -w 220 -h 30;
// create six symbol buttons with related mel command
symbolButton -image "commandButton.png" -command "Character()";
setParent ..;
// show the window we last created
showWindow;
}
global proc Character()
{
string $file_Path = (`internalVar -userPrefDir`) + "icons/3D_Ghost_Script/Unreal_Character_Scale.ma";
int $mods = `getModifiers`;
print ("Modifiers are:");
int $getModifierPressed = `getModifiers`;
if ( $getModifierPressed == 0)
{
string $file_Path = (`internalVar -userPrefDir`) + "icons/3D_Ghost_Script/Unreal_Character_Scale.ma";
file -r -type "mayaAscii" -ignoreVersion $file_Path;
}
//If I PRESSED SHIFT IT WILL IMPORT CHARACTER
if (($mods / 1) % 2)
{
file -rr $file_Path;
}
//If I PRESSED CTRL IT WILL IMPORT CHARACTER
if (($mods / 4) % 2)
{
file -ir $file_Path;
}
}
// if you want to use alt then here is the command I'm writing this so it would be benefit for other users
if (($mods / 😎 % 2) print (" Alt");