Zoom And Pan

When using Hot Key Z and up and down for zoom and X and move mouse/pen it fails to work after sometime during the creation of rotos + and - work.
Any idea on what is causing this?
The only work around seems to be reloading the project which takes a lot of time.