Add new block handlers for before, during, and after closing + opening interactions for keyboard