press M to toggle render mode