define keyEvent for voi cutter and start working on optimisations