A test for a visual interface with key commands in c++