Thanks for your response, now I have added all the actions which I want to be paused when I press "P" key and made it a group and then created a event
when I press P > deactivate the group
[then it will go to another layout and when i press R it will return to the previous layout and activate the group"time scale 1.0"]
then when I press R > activate the group
now what I want to do is, when I press R & when it return back to the game layout i want to start the game from where I paused, not from the beginning, how do I do that?