This code is for an Arduino board(atmega32u4) that has five buttons attached to it. The buttons are connected to pins 2 through 6 of the board, and the code reads the digital values of these pins to detect when a button is pressed.
pin define
S5(Soft off) WIN+X > U >U
S4(Hibernate) WIN+X > U >H
S3(Sleep) WIN+X > U >S
RESTART WIN+X > U >R