set keys for closing tabs