Unfortunately, for some unknown reason, this happens in some cases. The API for managing the blender interface is somewhat incomplete and we have to use the mouse for manipulations. This is exactly your case. But thanks for the feedback. We will review the new API. Perhaps the developers have already made the necessary changes.