Nothing has changed, and no shortcuts have changed, in many many years.
Does the demo below show what you see? If so, then the confusion probably comes from not recognizing how an inverted mask appears under different conditions. The demo shows inverting three different ways:
1. Inverting a mask with an opaque layer under it. This is probably what you’re used to.
2. Inverting a mask while viewing only the mask as black and white (Option-clicking the mask). You might be familiar with this view too.
3. Inverting a mask when the opaque Background layer is hidden, or not present. Without the opaque Background layer, any area not covered by any layer reveals the standard checkerboard grid that indicates that an area is transparent, not opaque white. Is this the grid you saw? This would be normal if you are editing a document where the background must remain transparent.

@Egozalan wrote:
…and select menu doesnt have option to invert it has on inverse which doesnt work.
The Select menu has never had an Invert menu on it, only Inverse. The Invert command, which does and always has worked on masks, is actually on the Image > Adjustments submenu, and that is where you can see the keyboard shortcut Command-I is and has been for many years. So, Select > Inverse is for selections, and Image > Adjustments > Invert (Command-I) is for pixels (layers or masks).
