When you convert a div into a button, you need to add roles, tabindex, and event handlers (like onClick) to ensure it is accessible. This includes handling key events like Enter and Space.