How to Get input mode

I can easily check whether or not the pause menu is on, it’s not the issue. I want to have information which input mode to set after closing the menu.