Fix my cpp class template, added key bindings for tab