doing key stuff