added code for registering key-callbacks in the mayavi viewer