Scale while zooming in a viewport.

In a sheet, how do I zoom in a viewport to a determined scale? Like for example 1/50xp? The option to do that is there once I start the command, but it seems to be "unselectable".