JRPG set game pause/un-pause(seperate keys)

Is it just the swapping keys part you’re unsure of? Have you got the pause/unpause working now?