Update testApp.cpp

added key command to perform view lock in the demo.