Adding key codes of Poweroff in Arduino sketchbook for chromebooks

I know how to define a key in Arduino Sketchbook , but how can I define an ASCII code for Poweroff button in Chromebook .

I am using a device to pre-program certain activities it will carry out when connected to a device. (OSOYOO Pro Micro ATmega32U4 5V/16MHz Module Board with 2 Row pin Header for arduino Leonardo Replace ATmega328 Pro Mini)

But I am not able to find a way in which I can define shortcut keys for poweroff .

Can anyone help????

I know how to define a key in Arduino Sketchbook , but how can I define an ASCII code for Poweroff button in Chromebook .

I am using a device to pre-program certain activities it will carry out when connected to a device. (OSOYOO Pro Micro ATmega32U4 5V/16MHz Module Board with 2 Row pin Header for arduino Leonardo Replace ATmega328 Pro Mini)

But I am not able to find a way in which I can define shortcut keys for poweroff .

Can anyone help????

@humera_latif95, do not cross-post. Threads merged.