Is there any shell utility in Ubuntu which can define if the modifier key (Ctrl, Shift, Super, Alt) is pressed down on the moment when i run it?
There is the xev utility which prints information about X events (including keypress events). It's available if you're running X11.
xev
Use showkey. Manpage is here.
showkey